File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed
Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 1- import React , { useEffect } from "react" ;
1+ import React from "react" ;
22import { Box } from "@mui/material" ;
33import ButtonModal from "./MatchingService/MatchButton" ;
44import QuestionsTable from "./Questions/QuestionsTable" ;
55
66export 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%" >
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import Navbar from "../components/Navbar";
33import Home from "../components/Home" ;
44import "./App.css" ;
55import CenteredContainer from "../components/CenteredContainer" ;
6- import QuestionsTable from "../components/Questions/QuestionsTable" ;
76
87export default function App ( ) {
98 return (
You can’t perform that action at this time.
0 commit comments