Skip to content

Commit eb0262d

Browse files
committed
Fix eslint
1 parent 85cfa39 commit eb0262d

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

frontend/src/components/Home.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
1-
import React, { useEffect } from "react";
1+
import React from "react";
22
import { Box } from "@mui/material";
33
import ButtonModal from "./MatchingService/MatchButton";
44
import QuestionsTable from "./Questions/QuestionsTable";
55

66
export default function Home() {
7-
// Sample data for practice questions (you can replace this with actual data)
8-
const practiceQuestions = [
9-
{ difficulty: "Easy", count: 10 },
10-
{ difficulty: "Medium", count: 20 },
11-
{ difficulty: "Hard", count: 15 },
12-
];
13-
// State to hold the practice questions data
14-
// const [questionsData, setQuestionsData] = useState(practiceQuestions);
15-
16-
// You can fetch the actual data from your API using useEffect
17-
18-
useEffect(() => {
19-
// Fetch practice questions data from your API here and update the state
20-
// Example API call:
21-
// fetch('/api/practice-questions')
22-
// .then((response) => response.json())
23-
// .then((data) => setQuestionsData(data));
24-
}, []);
25-
267
return (
278
<React.Fragment>
289
<Box width="80%">

frontend/src/pages/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Navbar from "../components/Navbar";
33
import Home from "../components/Home";
44
import "./App.css";
55
import CenteredContainer from "../components/CenteredContainer";
6-
import QuestionsTable from "../components/Questions/QuestionsTable";
76

87
export default function App() {
98
return (

0 commit comments

Comments
 (0)