Skip to content

Commit 891bcb4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 34fdc61 commit 891bcb4

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

frontend/src/components/RecruiterApplicantsComponents.jsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Label = ({ color, children }) => {
2222
info: "info.main",
2323
primary: "primary.main",
2424
secondary: "secondary.main",
25-
offerSent: "#4CAF50",
25+
offerSent: "#4CAF50",
2626
};
2727

2828
return (
@@ -37,8 +37,8 @@ const Label = ({ color, children }) => {
3737
px: 1,
3838
color: "white",
3939
fontSize: "0.55rem",
40-
fontWeight:'bold',
41-
padding:'4px',
40+
fontWeight: "bold",
41+
padding: "4px",
4242
backgroundColor: backgroundColors[color] || "error.main",
4343
}}
4444
>
@@ -47,7 +47,6 @@ const Label = ({ color, children }) => {
4747
);
4848
};
4949

50-
5150
Label.propTypes = {
5251
color: PropTypes.string.isRequired,
5352
children: PropTypes.node,
@@ -107,7 +106,7 @@ const UserListHead = ({
107106
return (
108107
<TableHead
109108
sx={{
110-
bgcolor: "grey.200",
109+
bgcolor: "grey.200",
111110
}}
112111
>
113112
<TableRow>
@@ -161,7 +160,7 @@ const UserListToolbar = ({
161160
display: "flex",
162161
justifyContent: "space-between",
163162
padding: 1,
164-
backgroundColor: "background.paper",
163+
backgroundColor: "background.paper",
165164
...(numSelected > 0 && {
166165
color: "primary.main",
167166
bgcolor: "primary.lighter",

frontend/src/pages/RecruiterApplicants.jsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,14 @@ const RecruiterApplicantsPage = () => {
6363
"Content-Type": "application/json",
6464
Authorization: `Bearer ${localStorage.getItem("access_token")}`,
6565
},
66-
}
66+
},
6767
);
6868

6969
if (response.ok) {
7070
const data = await response.json();
7171
const jobIds = data.map((job) => job.id);
7272
setJobIds(jobIds);
73-
}
74-
else {
73+
} else {
7574
console.error("Failed to fetch jobs for the recruiter");
7675
}
7776
} catch (error) {
@@ -94,7 +93,7 @@ const RecruiterApplicantsPage = () => {
9493
"Content-Type": "application/json",
9594
Authorization: `Bearer ${localStorage.getItem("access_token")}`,
9695
},
97-
}
96+
},
9897
);
9998

10099
if (response.status === 404) {
@@ -107,10 +106,10 @@ const RecruiterApplicantsPage = () => {
107106
const applicantsWithProfilePictures = await Promise.all(
108107
data.map(async (applicant) => {
109108
const profilePictureUrl = await fetchProfilePicture(
110-
applicant.user_profile_id
109+
applicant.user_profile_id,
111110
);
112111
return { ...applicant, profile_picture: profilePictureUrl };
113-
})
112+
}),
114113
);
115114
allApplicants = [
116115
...allApplicants,
@@ -167,7 +166,7 @@ const RecruiterApplicantsPage = () => {
167166
headers: {
168167
Authorization: `Bearer ${localStorage.getItem("access_token")}`,
169168
},
170-
}
169+
},
171170
);
172171

173172
if (response.ok) {
@@ -190,7 +189,7 @@ const RecruiterApplicantsPage = () => {
190189
const filteredApplicants = applicants.filter((applicant) =>
191190
`${applicant.applicant.first_name} ${applicant.applicant.last_name}`
192191
.toLowerCase()
193-
.includes(filterName.toLowerCase())
192+
.includes(filterName.toLowerCase()),
194193
);
195194

196195
const handleDialogOpen = (row) => {
@@ -217,7 +216,7 @@ const RecruiterApplicantsPage = () => {
217216
new_status: dialogData.application_status.status,
218217
rejection_feedback: dialogData.application_status.feedback,
219218
}),
220-
}
219+
},
221220
);
222221

223222
if (response.ok) {

frontend/src/pages/skills.jsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ function SkillsSelector() {
8383

8484
export default SkillsSelector;
8585

86-
87-
8886
// import React, { useState, useEffect } from "react";
8987

9088
// const App = () => {
@@ -132,10 +130,6 @@ export default SkillsSelector;
132130

133131
// export default App;
134132

135-
136-
137-
138-
139133
// import React, { useState } from 'react';
140134
// import { Button, Dialog, DialogTitle, DialogContent } from '@mui/material';
141135

@@ -208,5 +202,3 @@ export default SkillsSelector;
208202
// }
209203

210204
// export default DownloadResumeButton;
211-
212-

0 commit comments

Comments
 (0)