|
|
|
@ -4,6 +4,7 @@ import { Box, Paper, Typography, TextField, Button } from "@material-ui/core"; |
|
|
|
|
import { useHistory, useLocation } from 'react-router'; |
|
|
|
|
import { useAuth, Auth } from '../../../lib/useAuth'; |
|
|
|
|
import Alert from '@material-ui/lab/Alert'; |
|
|
|
|
import { Link } from 'react-router-dom'; |
|
|
|
|
|
|
|
|
|
export enum LoginStatus { |
|
|
|
|
NoneSubmitted = 0, |
|
|
|
@ -70,6 +71,7 @@ export function LoginWindowControlled(props: { |
|
|
|
|
<Box |
|
|
|
|
m={1} |
|
|
|
|
mt={4} |
|
|
|
|
width="500px" |
|
|
|
|
> |
|
|
|
|
<Paper> |
|
|
|
|
<Box p={3}> |
|
|
|
@ -113,6 +115,15 @@ export function LoginWindowControlled(props: { |
|
|
|
|
variant="outlined" |
|
|
|
|
color="primary" |
|
|
|
|
>Sign in</Button> |
|
|
|
|
<Box display="flex" alignItems="center" mt={2}> |
|
|
|
|
<Typography>Need an account?</Typography> |
|
|
|
|
<Box flexGrow={1} ml={2}><Button |
|
|
|
|
onClick={() => history.replace("/register")} |
|
|
|
|
fullWidth |
|
|
|
|
variant="outlined" |
|
|
|
|
color="primary" |
|
|
|
|
>Sign up</Button></Box> |
|
|
|
|
</Box> |
|
|
|
|
</form> |
|
|
|
|
</Box> |
|
|
|
|
</Paper> |
|
|
|
|