Skip to content

Commit 5f2f2a7

Browse files
committed
fix build
1 parent 1cbcd20 commit 5f2f2a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Home.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from "react";
1+
import { useEffect } from "react";
22
import { Box } from "@mui/material";
33

44
export default function Home() {
@@ -9,7 +9,7 @@ export default function Home() {
99
{ difficulty: "Hard", count: 15 },
1010
];
1111
// State to hold the practice questions data
12-
const [questionsData, setQuestionsData] = useState(practiceQuestions);
12+
// const [questionsData, setQuestionsData] = useState(practiceQuestions);
1313

1414
// You can fetch the actual data from your API using useEffect
1515

@@ -28,8 +28,8 @@ export default function Home() {
2828
<div>
2929
<h2>Practice Questions</h2>
3030
<ul>
31-
{questionsData.map((question, index) => (
32-
<li key={index}>
31+
{practiceQuestions.map((question) => (
32+
<li key={question.difficulty}>
3333
{question.difficulty}: {question.count} questions
3434
</li>
3535
))}

0 commit comments

Comments
 (0)