From f46546c4fda88b0040b8b1c1aacd30e468e8024c Mon Sep 17 00:00:00 2001 From: Evan Yang Date: Tue, 20 Aug 2024 13:19:56 -0700 Subject: [PATCH 1/2] mui --- .../presentational/returnUserForm.jsx | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/client/src/components/presentational/returnUserForm.jsx b/client/src/components/presentational/returnUserForm.jsx index bde529317..4e4fb17c8 100644 --- a/client/src/components/presentational/returnUserForm.jsx +++ b/client/src/components/presentational/returnUserForm.jsx @@ -1,19 +1,20 @@ import React from 'react'; +import { Box } from '@mui/material'; const ReturnUserForm = (props) => { return ( -
-
-

Welcome back!

-
-
+ + + Welcome back! + +
e.preventDefault()} > -
-
+ + @@ -27,22 +28,22 @@ const ReturnUserForm = (props) => { required autoComplete="email" /> -
+

{"(This allows easy use of the app. We'll never sell your data!)"}

-
+ - {props.isError && props.errorMessage.length > 1 && -
{props.errorMessage}
- } + {props.isError && props.errorMessage.length > 1 && ( + {props.errorMessage} + )} {props.user === false && ( -
Try entering your email again.
+ Try entering your email again. )} {!props.user && !props.isLoading ? ( -
-
+ + -
-
+ + ) : ( -
-
+ + -
-
+ + )}
-
-
+ + ); }; export default ReturnUserForm; From bd02f9c2e262b4f8511c5591a2d2220736119bae Mon Sep 17 00:00:00 2001 From: Evan Yang Date: Wed, 13 Nov 2024 15:44:31 -0800 Subject: [PATCH 2/2] corrections --- .../presentational/returnUserForm.jsx | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/client/src/components/presentational/returnUserForm.jsx b/client/src/components/presentational/returnUserForm.jsx index 4e4fb17c8..c8ad13881 100644 --- a/client/src/components/presentational/returnUserForm.jsx +++ b/client/src/components/presentational/returnUserForm.jsx @@ -1,5 +1,7 @@ import React from 'react'; import { Box } from '@mui/material'; +import Button from '@mui/material/Button'; +import { FormControl, FormLabel, TextField } from '@mui/material'; const ReturnUserForm = (props) => { return ( @@ -8,17 +10,17 @@ const ReturnUserForm = (props) => { Welcome back! -
e.preventDefault()} > - - + { {!props.user && !props.isLoading ? ( - + ) : ( - + )} - +
);