11import React from 'react' ;
2+ import { Box } from '@mui/material' ;
23
34const ReturnUserForm = ( props ) => {
45 return (
5- < div className = "check-in-container" >
6- < div className = "check-in-headers" >
7- < h3 > Welcome back!</ h3 >
8- </ div >
9- < div className = "check-in-form" >
6+ < Box className = "check-in-container" >
7+ < Box className = "check-in-headers" >
8+ < Typography variant = "h3" > Welcome back!</ Typography >
9+ </ Box >
10+ < Box className = "check-in-form" >
1011 < form
1112 className = "form-check-in"
1213 autoComplete = "on"
1314 onSubmit = { ( e ) => e . preventDefault ( ) }
1415 >
15- < div className = "form-row" >
16- < div className = "form-input-text" >
16+ < Box className = "form-row" >
17+ < Box className = "form-input-text" >
1718 < label htmlFor = "email" >
1819 Which email address did you use to check-in last time?
1920 </ label >
@@ -27,22 +28,22 @@ const ReturnUserForm = (props) => {
2728 required
2829 autoComplete = "email"
2930 />
30- </ div >
31+ </ Box >
3132 < p >
3233 { "(This allows easy use of the app. We'll never sell your data!)" }
3334 </ p >
34- </ div >
35+ </ Box >
3536
36- { props . isError && props . errorMessage . length > 1 &&
37- < div className = "error" > { props . errorMessage } </ div >
38- }
37+ { props . isError && props . errorMessage . length > 1 && (
38+ < Box className = "error" > { props . errorMessage } </ Box >
39+ ) }
3940 { props . user === false && (
40- < div className = "error" > Try entering your email again.</ div >
41+ < Box className = "error" > Try entering your email again.</ Box >
4142 ) }
4243
4344 { ! props . user && ! props . isLoading ? (
44- < div className = "form-row" >
45- < div className = "form-input-button" >
45+ < Box className = "form-row" >
46+ < Box className = "form-input-button" >
4647 < button
4748 type = "submit"
4849 className = "form-check-in-submit"
@@ -53,24 +54,24 @@ const ReturnUserForm = (props) => {
5354 >
5455 CHECK IN
5556 </ button >
56- </ div >
57- </ div >
57+ </ Box >
58+ </ Box >
5859 ) : (
59- < div className = "form-row" >
60- < div className = "form-input-button" >
60+ < Box className = "form-row" >
61+ < Box className = "form-input-button" >
6162 < button
6263 type = "submit"
6364 className = "form-check-in-submit block"
6465 onClick = { ( e ) => e . preventDefault ( ) }
6566 >
6667 CHECKING IN...
6768 </ button >
68- </ div >
69- </ div >
69+ </ Box >
70+ </ Box >
7071 ) }
7172 </ form >
72- </ div >
73- </ div >
73+ </ Box >
74+ </ Box >
7475 ) ;
7576} ;
7677export default ReturnUserForm ;
0 commit comments