From 27693296bf4f15756c3a89781c0c7915f9772032 Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Thu, 12 Nov 2020 17:12:08 +0100 Subject: [PATCH] Registration and login pages link to each other. --- .../components/windows/login/LoginWindow.tsx | 11 ++++++++++ .../windows/register/RegisterWindow.tsx | 20 ++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/client/src/components/windows/login/LoginWindow.tsx b/client/src/components/windows/login/LoginWindow.tsx index fe9e216..997b6f1 100644 --- a/client/src/components/windows/login/LoginWindow.tsx +++ b/client/src/components/windows/login/LoginWindow.tsx @@ -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: { @@ -113,6 +115,15 @@ export function LoginWindowControlled(props: { variant="outlined" color="primary" >Sign in + + Need an account? + + diff --git a/client/src/components/windows/register/RegisterWindow.tsx b/client/src/components/windows/register/RegisterWindow.tsx index 888bc48..dfd6156 100644 --- a/client/src/components/windows/register/RegisterWindow.tsx +++ b/client/src/components/windows/register/RegisterWindow.tsx @@ -76,6 +76,7 @@ export function RegisterWindowControlled(props: { @@ -118,11 +119,20 @@ export function RegisterWindowControlled(props: { } {props.state.status !== RegistrationStatus.Successful && } + type="submit" + fullWidth + variant="outlined" + color="primary" + >Sign up} + + Already have an account? + +