File tree Expand file tree Collapse file tree 7 files changed +3
-13
lines changed Expand file tree Collapse file tree 7 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 1
1
// ProblemSolverLeft.jsx
2
2
import React , { useEffect } from 'react' ;
3
- import { useParams } from 'react-router-dom' ;
4
3
import {
5
4
Paper ,
6
5
Typography ,
@@ -18,8 +17,6 @@ function CollabProblemSolverLeft({questionNumber}: {questionNumber: string}) {
18
17
// Find the question that matches the questionId
19
18
const question = questions . find ( ( q ) => q . id === questionId ) ;
20
19
console . log ( question )
21
- // console.log(questions)
22
- // console.log(question)
23
20
useEffect ( ( ) => {
24
21
// Fetch initial code or other data as needed
25
22
// You can set the initial code or other data here
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { v4 as uuidv4 } from "uuid";
8
8
9
9
import { DefaultEventsMap } from "@socket.io/component-emitter" ;
10
10
import PartySocket from "partysocket" ;
11
- import socket from "./MatchingService/socket" ;
12
11
13
12
interface ChatMessage {
14
13
id : string ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import MenuIcon from "@mui/icons-material/Menu";
16
16
import AdbIcon from "@mui/icons-material/Adb" ;
17
17
import { useAuth } from "../auth/auth.context" ;
18
18
import { useNavigate } from "react-router-dom" ;
19
- import { useData } from "../data/data.context" ;
20
19
21
20
const pages = [
22
21
{
Original file line number Diff line number Diff line change @@ -45,10 +45,9 @@ const QuestionForm: React.FC<QuestionFormProps> = ({
45
45
{ value : "Medium" , label : "Medium" } ,
46
46
{ value : "Hard" , label : "Hard" } ,
47
47
] ;
48
- const { questions, getQuestions, loading } = useData ( ) ;
48
+ const { questions, getQuestions } = useData ( ) ;
49
49
const [ openSnackbar , setOpenSnackbar ] = useState ( false ) ;
50
50
const [ snackbarMessage , setSnackbarMessage ] = useState ( "" ) ;
51
- const [ allQuestions , setAllQuestions ] = useState ( ) ;
52
51
const [ showSimilarQuestionsDialog , setShowSimilarQuestionsDialog ] =
53
52
useState ( false ) ;
54
53
const [ similarQuestions , setSimilarQuestions ] = useState < Question [ ] > ( [ ] ) ;
@@ -57,7 +56,6 @@ const QuestionForm: React.FC<QuestionFormProps> = ({
57
56
getQuestions ( ) ;
58
57
}
59
58
getInterviewQuestions ( ) ;
60
- // console.log("here");
61
59
// eslint-disable-next-line react-hooks/exhaustive-deps
62
60
} , [ ] ) ;
63
61
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import Home from "../components/Home";
4
4
import "./App.css" ;
5
5
import CenteredContainer from "../components/CenteredContainer" ;
6
6
import QuestionsTable from "../components/Questions/QuestionsTable" ;
7
- import AddQuestionTab from "../components/Questions/AddQuestionTab" ;
8
- import EditQuestionsTab from "../components/Questions/EditQuestionsTab" ;
9
7
10
8
export default function App ( ) {
11
9
return (
Original file line number Diff line number Diff line change 3
3
Box ,
4
4
Button ,
5
5
CssBaseline ,
6
- Link ,
7
6
TextField ,
8
7
Typography ,
9
8
} from "@mui/material" ;
@@ -13,7 +12,7 @@ import PasswordField from "../components/PasswordField";
13
12
import { useAuth } from "../auth/auth.context" ;
14
13
15
14
export default function CreateAdmin ( ) {
16
- const { user , error, signUpAdmin } = useAuth ( ) ;
15
+ const { error, signUpAdmin } = useAuth ( ) ;
17
16
const [ email , setEmail ] = useState ( "" ) ;
18
17
const [ password , setPassword ] = useState ( "" ) ;
19
18
const [ creation , setCreation ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export default function Profile() {
81
81
</ Grid >
82
82
</ Grid >
83
83
< DeleteButtonModal />
84
- { user ?. role == 'master' && < AdminUsersTable /> }
84
+ { user ?. role === 'master' && < AdminUsersTable /> }
85
85
</ Container >
86
86
</ Box >
87
87
) ;
You can’t perform that action at this time.
0 commit comments