Skip to content

Commit ad85f2a

Browse files
committed
Addressed ESLint
1 parent 11a536e commit ad85f2a

File tree

4 files changed

+17
-22
lines changed

4 files changed

+17
-22
lines changed

frontend/src/components/CreateJobModal.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Typography,
55
Dialog,
66
DialogTitle,
7-
FormControl,
87
TextField,
98
Slider,
109
FormControlLabel,

frontend/src/components/SignIn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const LoginPage = () => {
3131
return;
3232
}
3333

34-
const response = await fetch("https://chapi.techstartucalgary.com/token", {
34+
await fetch("https://chapi.techstartucalgary.com/token", {
3535
method: "POST",
3636
headers: {
3737
"Content-Type": "application/x-www-form-urlencoded",

frontend/src/components/SignUp.jsx

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,18 @@ const SignUpPage = () => {
5353
event.preventDefault();
5454

5555
try {
56-
const response = await fetch(
57-
"https://chapi.techstartucalgary.com/users/",
58-
{
59-
method: "POST",
60-
mode: "cors",
61-
headers: { "Content-Type": "application/json" },
62-
body: JSON.stringify({
63-
username,
64-
email,
65-
password,
66-
is_recruiter,
67-
}),
68-
}
69-
).then((response) => {
56+
await fetch("https://chapi.techstartucalgary.com/users/", {
57+
method: "POST",
58+
mode: "cors",
59+
headers: { "Content-Type": "application/json" },
60+
body: JSON.stringify({
61+
username,
62+
email,
63+
password,
64+
is_recruiter,
65+
}),
66+
}).then((response) => {
7067
if (response.ok) {
71-
const data = response.json();
7268
fetch("https://chapi.techstartucalgary.com/token", {
7369
method: "POST",
7470
headers: {

frontend/src/pages/LandingPage.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import "../styles/LandingPage.css";
1111
const LandingPage = () => {
1212
return (
1313
<div>
14-
<img src={vector1} />
14+
<img src={vector1} alt="" />
1515

1616
<Box className="findJob">
17-
<img src={findJob} />
17+
<img src={findJob} alt="Find Jobs Stress Free!" />
1818
<Button
1919
className="button-1"
2020
variant="contained"
@@ -25,11 +25,11 @@ const LandingPage = () => {
2525
</Button>
2626
</Box>
2727

28-
<img src={HiringVector} />
28+
<img src={HiringVector} alt="" />
2929

3030
<div className="design">
31-
<img className="image" src={vector2} />
32-
<img className="image" src={vector3} />
31+
<img className="image" src={vector2} alt="" />
32+
<img className="image" src={vector3} alt="" />
3333
</div>
3434
</div>
3535
);

0 commit comments

Comments
 (0)