mirror of
https://github.com/WDI-Ideas/rubix.git
synced 2026-04-27 21:55:50 +00:00
Updated Stats page
This commit is contained in:
@@ -4,12 +4,31 @@ import { useInView } from "react-intersection-observer";
|
||||
import CountUp from "react-countup";
|
||||
import banner from "../../assets/images/Statsbanner.png";
|
||||
import { useMediaQuery } from "@chakra-ui/react";
|
||||
import {
|
||||
useGetStatApiQuery,
|
||||
useGetStatsApiQuery,
|
||||
} from "../../Redux/slice/statsSlice";
|
||||
|
||||
const StatsContent = {
|
||||
heading: `Key Statistics`,
|
||||
};
|
||||
|
||||
const Stats = () => {
|
||||
const {
|
||||
data: statsData,
|
||||
error: statsError,
|
||||
isLoading: statsIsLoading,
|
||||
} = useGetStatsApiQuery();
|
||||
|
||||
const {
|
||||
data: statData,
|
||||
error: statError,
|
||||
isLoading: statIsLoading,
|
||||
} = useGetStatApiQuery();
|
||||
|
||||
// console.log(statsData);
|
||||
// console.log(statData);
|
||||
|
||||
const [isSmallScreen] = useMediaQuery("(max-width: 435px)");
|
||||
const { ref, inView } = useInView({
|
||||
threshold: 0.5,
|
||||
|
||||
Reference in New Issue
Block a user