Skip to content

Commit

Permalink
:)
Browse files Browse the repository at this point in the history
  • Loading branch information
tig-github committed May 3, 2024
1 parent b954cf1 commit 6772ac7
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions src/components/Events/ImpactSummary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const ImpactSummary = () => {
getData();
}, []);


const getData = async () => {
try {
let response = await Backend.get('/stats/registered');
Expand Down Expand Up @@ -56,24 +57,24 @@ const ImpactSummary = () => {

const flexDirectionBreakpoint = useBreakpointValue(
{
base: 'column',
sm: 'column',
md: 'row',
base: "column",
sm: "column",
md: "row"
},
{
fallback: 'row',
},
fallback: "row"
}
);

const gapBreakpoint = useBreakpointValue(
{
base: 0,
sm: 0,
md: 120,
},
{
fallback: 120,
},
const gapBreakpoint = useBreakpointValue(
{
base: 0,
sm: 0,
md: 120
},
{
fallback: 120
}
);

useEffect(() => {
Expand All @@ -89,6 +90,7 @@ const ImpactSummary = () => {
getEventId();
}, []);


return (
<Box
mb="5"
Expand All @@ -101,6 +103,7 @@ const ImpactSummary = () => {
borderRadius={'lg'}
py={10}
>

<DataCard
amount={registered}
text={'Total Registered Volunteers'}
Expand Down Expand Up @@ -147,6 +150,7 @@ const ImpactSummary = () => {
{/* Export Data */}
</Button>
</VStack>

</Box>
);
};
Expand Down

0 comments on commit 6772ac7

Please sign in to comment.