diff --git a/frontend/components/redeem/DidYouKnow.tsx b/frontend/components/redeem/DidYouKnow.tsx index d235739a..c20b16be 100644 --- a/frontend/components/redeem/DidYouKnow.tsx +++ b/frontend/components/redeem/DidYouKnow.tsx @@ -1,6 +1,6 @@ -import { Box, Stack, Typography } from '@mui/material'; +import { Stack, Typography } from '@mui/material'; import { useEffect, useState } from 'react'; -import { boxSx, stackSx, textSx } from '../../styles/components/redeem/DidYouKnowStyles'; +import { stackSx } from '../../styles/components/redeem/DidYouKnowStyles'; // TODO: Change this if needed const DID_YOU_KNOW_FACTS: string[] = [ @@ -12,23 +12,23 @@ const DID_YOU_KNOW_FACTS: string[] = [ ]; const DidYouKnow = () => { - const [factIndex, setfactIndex] = useState(0); + const [factIndex, setFactIndex] = useState(0); useEffect(() => { const interval = setInterval(() => { - setfactIndex((prevIndex) => (prevIndex + 1) % DID_YOU_KNOW_FACTS.length); + setFactIndex((prevIndex) => (prevIndex + 1) % DID_YOU_KNOW_FACTS.length); }, 5000); return () => clearInterval(interval); }, [factIndex]); return ( - + Did you know? - - {DID_YOU_KNOW_FACTS[factIndex]} - + + {DID_YOU_KNOW_FACTS[factIndex]} + ); }; diff --git a/frontend/styles/components/redeem/DidYouKnowStyles.ts b/frontend/styles/components/redeem/DidYouKnowStyles.ts index d93aeb18..947537b1 100644 --- a/frontend/styles/components/redeem/DidYouKnowStyles.ts +++ b/frontend/styles/components/redeem/DidYouKnowStyles.ts @@ -11,22 +11,3 @@ export const stackSx: SxProps = { alignItems: 'center', width: '90%', }; - -export const boxSx: SxProps = { - marginTop: 1.5, - padding: 1.5, - borderRadius, - width: '100%', - background: 'linear-gradient(150.91deg, rgba(255, 153, 0, 0.56375) -28.09%, rgba(184, 34, 221, 0.8) 109.59%);', - div: { width: '100%' }, -}; - -export const textSx: SxProps = { - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - minHeight: '80px', - color: 'white', - fontWeight: 500, - textAlign: 'center', -};