Skip to content

Commit 52b21ff

Browse files
refactor(QuizzesStats): import new button
1 parent fca1672 commit 52b21ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Quiz/QuizzesStats.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { CompletedQuizzes, QuizShareStats } from "@/lib/types"
77
import { trackCustomEvent } from "@/lib/utils/matomo"
88

99
import { ethereumBasicsQuizzes, usingEthereumQuizzes } from "../../data/quizzes"
10-
import { Button } from "../Buttons"
1110
import { TrophyIcon } from "../icons/quiz"
1211
import Translation from "../Translation"
12+
import { Button } from "../ui/buttons/Button"
1313
import { Center, Flex, HStack, Stack } from "../ui/flex"
1414
import { ListItem, UnorderedList } from "../ui/list"
1515
import { Progress } from "../ui/progress"
@@ -75,15 +75,15 @@ const QuizzesStats = ({
7575
<div className="order-3 lg:order-2 lg:justify-self-end">
7676
<Button
7777
variant="outline"
78-
leftIcon={<FaXTwitter />}
7978
onClick={() =>
8079
handleShare({
8180
score: totalCorrectAnswers,
8281
total: totalQuizzesPoints,
8382
})
8483
}
85-
w={{ base: "full", lg: "auto" }}
84+
className="max-lg:w-full"
8685
>
86+
<FaXTwitter />
8787
{t("share-results")}
8888
</Button>
8989
</div>

0 commit comments

Comments
 (0)