diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-01 10:58:11 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-02-01 10:58:11 -0800 |
commit | 65af8bad51851ff7f15319d5ce14ff24697aaded (patch) | |
tree | 935830fdad9a4d01cf4b1e9182e7542bdcca3262 /modern/src/LoginPage.js | |
parent | 05c3cd4e7bb395970b395c719c1e6a671574c75b (diff) | |
download | trackermap-web-65af8bad51851ff7f15319d5ce14ff24697aaded.tar.gz trackermap-web-65af8bad51851ff7f15319d5ce14ff24697aaded.tar.bz2 trackermap-web-65af8bad51851ff7f15319d5ce14ff24697aaded.zip |
Registration flow updatesv4.12
Diffstat (limited to 'modern/src/LoginPage.js')
-rw-r--r-- | modern/src/LoginPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/LoginPage.js b/modern/src/LoginPage.js index 14960f82..d3be3978 100644 --- a/modern/src/LoginPage.js +++ b/modern/src/LoginPage.js @@ -54,7 +54,7 @@ const LoginPage = () => { const classes = useStyles(); const history = useHistory(); - const registrationPref = useSelector(state => state.session.server ? state.session.server['registration'] : false); + const registrationEnabled = useSelector(state => state.session.server ? state.session.server['registration'] : false); const handleEmailChange = (event) => { setEmail(event.target.value); @@ -118,7 +118,7 @@ const LoginPage = () => { <FormControl fullWidth margin='normal'> <div className={classes.buttons}> - <Button type='button' variant='contained' onClick={handleRegister} disabled={!registrationPref}> + <Button type='button' variant='contained' onClick={handleRegister} disabled={!registrationEnabled}> {t('loginRegister')} </Button> <Button type='submit' variant='contained' color='primary' disabled={!email || !password}> |