Skip to content

Commit db60db5

Browse files
committed
add dep to dep array
1 parent 075d396 commit db60db5

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cd frontend
2424
npm install
2525
26-
- name: Build
26+
- name: Build and lint
2727
run: |
2828
cd frontend
2929
npm run build

frontend/src/components/MatchingService/MatchingForm.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,22 @@ const style = {
2727
p: 4,
2828
};
2929

30+
const titleStyle = {
31+
fontSize: "2rem", // Increase the title size
32+
};
3033

34+
const subtitleStyle = {
35+
fontSize: "1.5rem",
36+
padding: "10px",
3137

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+
};
4240

43-
4441
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+
};
5046

5147
const MatchingForm = React.forwardRef(function MatchingForm() {
5248
const [difficulty, setDifficulty] = React.useState("Easy");
@@ -133,7 +129,7 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
133129
return () => {
134130
socket.off("matchFound");
135131
};
136-
}, [difficulty, category, userEmail, navigate]);
132+
}, [difficulty, category, userEmail, navigate, getQuestions]);
137133

138134
return (
139135
<Box sx={style}>
@@ -147,7 +143,9 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
147143
</center>
148144
</h4>
149145
<div>
150-
<label htmlFor="difficulty" style={subtitleStyle}>Difficulty:</label>
146+
<label htmlFor="difficulty" style={subtitleStyle}>
147+
Difficulty:
148+
</label>
151149
<select
152150
id="difficulty"
153151
value={difficulty}
@@ -161,7 +159,9 @@ const MatchingForm = React.forwardRef(function MatchingForm() {
161159
</select>
162160
</div>
163161
<div>
164-
<label htmlFor="category" style={subtitleStyle}>Category:</label>
162+
<label htmlFor="category" style={subtitleStyle}>
163+
Category:
164+
</label>
165165
<select
166166
id="category"
167167
value={category}

0 commit comments

Comments
 (0)