diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-17 13:56:59 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-17 13:56:59 +0530 |
commit | f0ab1c08e5b75efc6e2966841fde39a7bcfbb43e (patch) | |
tree | 97e21931a7afcac0d00216d0c411c9e8893217c7 | |
parent | 2bbb45f8234b07f5c9b40e98650b2a6eead352c1 (diff) | |
download | trackermap-web-f0ab1c08e5b75efc6e2966841fde39a7bcfbb43e.tar.gz trackermap-web-f0ab1c08e5b75efc6e2966841fde39a7bcfbb43e.tar.bz2 trackermap-web-f0ab1c08e5b75efc6e2966841fde39a7bcfbb43e.zip |
Change file name from LoginPage to StartPage
-rw-r--r-- | modern/src/App.js | 2 | ||||
-rw-r--r-- | modern/src/StartPage.js (renamed from modern/src/LoginPage.js) | 4 | ||||
-rw-r--r-- | modern/src/components/registration/LoginForm.js | 8 | ||||
-rw-r--r-- | modern/src/components/registration/RegisterForm.js | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/modern/src/App.js b/modern/src/App.js index 36cd2b54..3641339e 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -48,7 +48,7 @@ const App = () => { <Switch> <Route exact path='/login' component={LoginForm} /> <Route exact path='/register' component={RegisterForm} /> - <Route exact path='/resetpassword' component={ResetPasswordForm} /> + <Route exact path='/reset-password' component={ResetPasswordForm} /> <Route> {!initialized ? (<LinearProgress />) : ( <Switch> diff --git a/modern/src/LoginPage.js b/modern/src/StartPage.js index 4c19dff2..0a086179 100644 --- a/modern/src/LoginPage.js +++ b/modern/src/StartPage.js @@ -40,7 +40,7 @@ const useStyles = makeStyles(theme => ({ }, })); -const LoginPage = ({ children }) => { +const StartPage = ({ children }) => { const classes = useStyles(); const theme = useTheme(); @@ -62,4 +62,4 @@ const LoginPage = ({ children }) => { ) } -export default LoginPage; +export default StartPage; diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js index 8de8b5e6..d2a57a2c 100644 --- a/modern/src/components/registration/LoginForm.js +++ b/modern/src/components/registration/LoginForm.js @@ -5,7 +5,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { sessionActions } from '../../store'; import t from '../../common/localization'; -import LoginPage from './../../LoginPage'; +import StartPage from './../../StartPage'; const useStyles = makeStyles(theme => ({ logoContainer: { @@ -58,7 +58,7 @@ const LoginForm = () => { } return ( - <LoginPage> + <StartPage> <Grid container direction='column' spacing={3}> {useMediaQuery(theme.breakpoints.down('md')) && <Grid item className={classes.logoContainer}> @@ -124,11 +124,11 @@ const LoginForm = () => { </Grid> {emailEnabled && <Grid item container justify="flex-end"> <Grid item> - <Link onClick={() => history.push('/resetpassword')} className={classes.resetPassword} underline="none">{t('loginReset')}</Link> + <Link onClick={() => history.push('/reset-password')} className={classes.resetPassword} underline="none">{t('loginReset')}</Link> </Grid> </Grid>} </Grid> - </LoginPage> + </StartPage> ) } diff --git a/modern/src/components/registration/RegisterForm.js b/modern/src/components/registration/RegisterForm.js index 62605eb3..a532d09c 100644 --- a/modern/src/components/registration/RegisterForm.js +++ b/modern/src/components/registration/RegisterForm.js @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { Grid, Button, TextField, Typography, Link, makeStyles, Snackbar } from '@material-ui/core'; import { useHistory } from 'react-router-dom'; import ArrowBackIcon from '@material-ui/icons/ArrowBack'; -import LoginPage from './../../LoginPage'; +import StartPage from './../../StartPage'; import t from './../../common/localization'; const useStyles = makeStyles(theme => ({ @@ -45,7 +45,7 @@ const RegisterForm = () => { } return ( - <LoginPage> + <StartPage> <Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={snackbarOpen} @@ -114,7 +114,7 @@ const RegisterForm = () => { </Button> </Grid> </Grid> - </LoginPage> + </StartPage> ) } |