@@ -3,13 +3,7 @@ import { Redirect } from 'react-router-dom';
33import { useHistory } from 'react-router-dom' ;
44import { checkUser , checkAuth } from '../../services/user.service' ;
55import { authLevelRedirect } from '../../utils/authUtils' ;
6- import {
7- Typography ,
8- Button ,
9- FormControl ,
10- Box ,
11- TextField
12- } from '@mui/material' ;
6+ import { Typography , Button , FormControl , Box , TextField } from '@mui/material' ;
137
148import useAuth from '../../hooks/useAuth' ;
159import '../../sass/AdminLogin.scss' ;
@@ -107,33 +101,37 @@ const Auth = () => {
107101 < div className = "flex-container" >
108102 < div className = "adminlogin-container" >
109103 < div className = "adminlogin-headers" >
110- < Typography variant = "h3" sx = { { fontSize :'2.8em' } } > Welcome Back!</ Typography >
104+ < Typography variant = "h3" sx = { { fontSize : '2.8em' } } >
105+ Welcome Back!
106+ </ Typography >
111107 </ div >
112- < FormControl
108+ < form
113109 onSubmit = { handleLogin }
114110 className = "form-check-in"
115111 autoComplete = "off"
116112 >
117- < div className = "form-row" >
118- < div className = "form-input-text" >
119- < Box className = "form-row" >
120- < Box className = "form-input-text" >
113+ < FormControl >
114+ < div className = "form-row" >
115+ < div className = "form-input-text" >
116+ < Box className = "form-row" >
117+ < Box className = "form-input-text" >
121118 < TextField
122- label = "Enter your email address:"
123- type = "email"
124- name = "email"
125- placeholder = "Email Address"
126- required = "required"
127- onChange = { handleInputChange }
128- aria-label = "Email Address"
129- data-test = "input-email"
130- autoComplete = "email"
131- />
132- </ Box >
119+ label = "Enter your email address:"
120+ type = "email"
121+ name = "email"
122+ placeholder = "Email Address"
123+ required = "required"
124+ onChange = { handleInputChange }
125+ aria-label = "Email Address"
126+ data-test = "input-email"
127+ autoComplete = "email"
128+ />
129+ </ Box >
133130 </ Box >
131+ </ div >
134132 </ div >
135- </ div >
136- </ FormControl >
133+ </ FormControl >
134+ </ form >
137135
138136 < div
139137 className = "adminlogin-warning"
@@ -149,7 +147,7 @@ const Auth = () => {
149147 className = "login-button"
150148 data-test = "login-btn"
151149 disabled = { isDisabled }
152- sx = { { color : 'black' } }
150+ sx = { { color : 'black' } }
153151 >
154152 LOGIN
155153 </ Button >
0 commit comments