Skip to content

Commit 01972e0

Browse files
committed
Remove unused imports and variables from commented out parts
1 parent 482d587 commit 01972e0

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

frontend/src/pages/Home/index.tsx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
import {
2-
Autocomplete,
3-
Button,
4-
Card,
5-
FormControl,
6-
Grid2,
7-
TextField,
2+
// Autocomplete,
3+
// Button,
4+
// Card,
5+
// FormControl,
6+
// Grid2,
7+
// TextField,
88
Typography,
99
} from "@mui/material";
10-
import { useEffect, useReducer, useState } from "react";
10+
// import { useEffect, useReducer, useState } from "react";
1111

1212
import classes from "./index.module.css";
1313
import AppMargin from "../../components/AppMargin";
14-
import {
15-
complexityList,
16-
languageList,
17-
maxMatchTimeout,
18-
minMatchTimeout,
19-
} from "../../utils/constants";
20-
import reducer, {
21-
getQuestionCategories,
22-
initialState,
23-
} from "../../reducers/questionReducer";
24-
import CustomChip from "../../components/CustomChip";
14+
// import {
15+
// complexityList,
16+
// languageList,
17+
// maxMatchTimeout,
18+
// minMatchTimeout,
19+
// } from "../../utils/constants";
20+
// import reducer, {
21+
// getQuestionCategories,
22+
// initialState,
23+
// } from "../../reducers/questionReducer";
24+
// import CustomChip from "../../components/CustomChip";
2525
// import homepageImage from "/homepage_image.svg";
2626

2727
const Home: React.FC = () => {
28-
const [complexity, setComplexity] = useState<string[]>([]);
29-
const [selectedCategories, setSelectedCategories] = useState<string[]>([]);
30-
const [language, setLanguage] = useState<string[]>([]);
31-
const [timeout, setTimeout] = useState<number>(30);
28+
// const [complexity, setComplexity] = useState<string[]>([]);
29+
// const [selectedCategories, setSelectedCategories] = useState<string[]>([]);
30+
// const [language, setLanguage] = useState<string[]>([]);
31+
// const [timeout, setTimeout] = useState<number>(30);
3232

33-
const [state, dispatch] = useReducer(reducer, initialState);
33+
// const [state, dispatch] = useReducer(reducer, initialState);
3434

35-
useEffect(() => {
36-
getQuestionCategories(dispatch);
37-
}, []);
35+
// useEffect(() => {
36+
// getQuestionCategories(dispatch);
37+
// }, []);
3838

3939
return (
4040
<AppMargin

0 commit comments

Comments
 (0)