Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eslint #116

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions frontend/src/components/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
import React, { useEffect } from "react";
import React from "react";
import { Box } from "@mui/material";
import ButtonModal from "./MatchingService/MatchButton";
import QuestionsTable from "./Questions/QuestionsTable";

export default function Home() {
// Sample data for practice questions (you can replace this with actual data)
const practiceQuestions = [
{ difficulty: "Easy", count: 10 },
{ difficulty: "Medium", count: 20 },
{ difficulty: "Hard", count: 15 },
];
// State to hold the practice questions data
// const [questionsData, setQuestionsData] = useState(practiceQuestions);

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

useEffect(() => {
// Fetch practice questions data from your API here and update the state
// Example API call:
// fetch('/api/practice-questions')
// .then((response) => response.json())
// .then((data) => setQuestionsData(data));
}, []);

return (
<React.Fragment>
<Box width="80%">
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Navbar from "../components/Navbar";
import Home from "../components/Home";
import "./App.css";
import CenteredContainer from "../components/CenteredContainer";
import QuestionsTable from "../components/Questions/QuestionsTable";

export default function App() {
return (
Expand Down
Loading