Skip to content

Commit ef3c043

Browse files
committed
Uncomment find match form
1 parent 8f6c5d9 commit ef3c043

File tree

1 file changed

+30
-31
lines changed

1 file changed

+30
-31
lines changed

frontend/src/pages/Home/index.tsx

Lines changed: 30 additions & 31 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";
25-
// import homepageImage from "/homepage_image.svg";
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";
25+
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
@@ -65,8 +65,7 @@ const Home: React.FC = () => {
6565
Your ultimate technical interview preparation platform to practice
6666
whiteboard style interview questions with a peer.
6767
</Typography>
68-
{/*
69-
<Box
68+
{/* <Box
7069
component="img"
7170
src={homepageImage}
7271
alt="Interview Practice Buddy"
@@ -79,7 +78,7 @@ const Home: React.FC = () => {
7978
objectFit: "contain",
8079
}}
8180
/> */}
82-
{/* <Card
81+
<Card
8382
sx={{
8483
padding: 4,
8584
width: "100%",
@@ -269,7 +268,7 @@ const Home: React.FC = () => {
269268
>
270269
Find my match!
271270
</Button>
272-
</Card> */}
271+
</Card>
273272
</AppMargin>
274273
);
275274
};

0 commit comments

Comments
 (0)