@@ -27,26 +27,22 @@ const style = {
27
27
p : 4 ,
28
28
} ;
29
29
30
+ const titleStyle = {
31
+ fontSize : "2rem" , // Increase the title size
32
+ } ;
30
33
34
+ const subtitleStyle = {
35
+ fontSize : "1.5rem" ,
36
+ padding : "10px" ,
31
37
32
- const titleStyle = {
33
- fontSize : "2rem" // Increase the title size
34
- } ;
35
-
36
- const subtitleStyle = {
37
- fontSize : "1.5rem" ,
38
- padding :'10px' ,
39
-
40
- // Increase the subtitle size
41
- } ;
38
+ // Increase the subtitle size
39
+ } ;
42
40
43
-
44
41
const dropdownStyle = {
45
- fontSize : "1.5rem" , // Increase the font size
46
- padding : "10px" , // Add padding for a bigger and more clickable area
47
- margin : "10px 0" // Space out the dropdowns a bit more
48
- } ;
49
-
42
+ fontSize : "1.5rem" , // Increase the font size
43
+ padding : "10px" , // Add padding for a bigger and more clickable area
44
+ margin : "10px 0" , // Space out the dropdowns a bit more
45
+ } ;
50
46
51
47
const MatchingForm = React . forwardRef ( function MatchingForm ( ) {
52
48
const [ difficulty , setDifficulty ] = React . useState ( "Easy" ) ;
@@ -133,7 +129,7 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
133
129
return ( ) => {
134
130
socket . off ( "matchFound" ) ;
135
131
} ;
136
- } , [ difficulty , category , userEmail , navigate ] ) ;
132
+ } , [ difficulty , category , userEmail , navigate , getQuestions ] ) ;
137
133
138
134
return (
139
135
< Box sx = { style } >
@@ -147,7 +143,9 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
147
143
</ center >
148
144
</ h4 >
149
145
< div >
150
- < label htmlFor = "difficulty" style = { subtitleStyle } > Difficulty:</ label >
146
+ < label htmlFor = "difficulty" style = { subtitleStyle } >
147
+ Difficulty:
148
+ </ label >
151
149
< select
152
150
id = "difficulty"
153
151
value = { difficulty }
@@ -161,7 +159,9 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
161
159
</ select >
162
160
</ div >
163
161
< div >
164
- < label htmlFor = "category" style = { subtitleStyle } > Category:</ label >
162
+ < label htmlFor = "category" style = { subtitleStyle } >
163
+ Category:
164
+ </ label >
165
165
< select
166
166
id = "category"
167
167
value = { category }
0 commit comments