aboutsummaryrefslogtreecommitdiff
path: root/src/pages/LoginPage/LoginPage.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-08 11:13:00 +0300
committereug-vs <eug-vs@keemail.me>2020-08-08 11:13:00 +0300
commitf55374d5328f672dbce47e8d452ce17d02ced9f8 (patch)
tree3e75a785a1b3e9d9391e80ff4a9905ac89c12313 /src/pages/LoginPage/LoginPage.tsx
parentb446a83ff24ed5ea2233c544446557ee29f44364 (diff)
downloadwhich-ui-f55374d5328f672dbce47e8d452ce17d02ced9f8.tar.gz
feat: add redirect tips to auth pages
Diffstat (limited to 'src/pages/LoginPage/LoginPage.tsx')
-rw-r--r--src/pages/LoginPage/LoginPage.tsx23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/pages/LoginPage/LoginPage.tsx b/src/pages/LoginPage/LoginPage.tsx
index 367ed6b..2bc7e5a 100644
--- a/src/pages/LoginPage/LoginPage.tsx
+++ b/src/pages/LoginPage/LoginPage.tsx
@@ -23,6 +23,15 @@ const useStyles = makeStyles(theme => ({
formHeader: {
textAlign: 'center',
fontSize: 25
+ },
+ formTransfer: {
+ display: 'flex',
+ justifyContent: 'center'
+ },
+ transferButton: {
+ marginLeft: 10,
+ color: 'green',
+ cursor: 'pointer'
}
}));
@@ -50,7 +59,9 @@ const LoginPage: React.FC = () => {
}
};
- // TODO: Add registration redirect
+ const handleRegistration = () => {
+ history.push('/registration');
+ };
return (
<>
@@ -74,6 +85,16 @@ const LoginPage: React.FC = () => {
/>
<Button variant="contained" onClick={handleSubmit}>submit</Button>
</form>
+ <div className={classes.formTransfer}>
+ <div>{'Don\'t have an account?'}</div>
+ <span
+ onClick={handleRegistration}
+ className={classes.transferButton}
+ role="presentation"
+ >
+ Sign up
+ </span>
+ </div>
</>
);
};