File tree Expand file tree Collapse file tree 4 files changed +17
-22
lines changed Expand file tree Collapse file tree 4 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 44 Typography ,
55 Dialog ,
66 DialogTitle ,
7- FormControl ,
87 TextField ,
98 Slider ,
109 FormControlLabel ,
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ import "../styles/LandingPage.css";
1111const 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 ) ;
You can’t perform that action at this time.
0 commit comments