From 65af8bad51851ff7f15319d5ce14ff24697aaded Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 1 Feb 2021 10:58:11 -0800 Subject: Registration flow updates --- modern/src/LoginPage.js | 4 ++-- modern/src/RegisterDialog.js | 28 +++++++++------------------- 2 files changed, 11 insertions(+), 21 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 = () => {
- @@ -97,8 +87,8 @@ const RegisterDialog = ({ showDialog, onResult }) => { ) - } else return null; + } }; export default RegisterDialog; -- cgit v1.2.3