Skip to content

Commit 74a73b2

Browse files
refactor(QuizzesStats): remove the Highlight component
1 parent 5c180ed commit 74a73b2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/components/Quiz/QuizzesStats.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useRouter } from "next/router"
22
import { useTranslation } from "next-i18next"
33
import { FaXTwitter } from "react-icons/fa6"
4-
import { Highlight } from "@chakra-ui/react"
54

65
import { CompletedQuizzes, QuizShareStats } from "@/lib/types"
76

@@ -96,12 +95,10 @@ const QuizzesStats = ({
9695
<TrophyIcon className="size-[35.62px] fill-background" />
9796
</Center>
9897
<span className="text-5xl font-bold">
99-
<Highlight
100-
query={`/${totalQuizzesPoints}`}
101-
styles={{ color: "body.medium" }}
102-
>
103-
{totalCorrectAnswers + "/" + totalQuizzesPoints}
104-
</Highlight>
98+
{totalCorrectAnswers}
99+
<span className="text-body-medium">
100+
/{totalQuizzesPoints}
101+
</span>
105102
</span>
106103
</HStack>
107104

0 commit comments

Comments
 (0)