aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components
diff options
context:
space:
mode:
authorrahighi <rahighi>2021-08-28 09:41:25 +0430
committerrahighi <rahighi>2021-08-28 09:41:25 +0430
commit545f0d8223e88631f8d7c13077ffe5bae78716cb (patch)
tree51d4c2132b2136208c0f18603ff6bf53b2983fd3 /modern/src/components
parent332681f36dc9814e51c61d0e310f6c5d8a0f0c20 (diff)
downloadtrackermap-web-545f0d8223e88631f8d7c13077ffe5bae78716cb.tar.gz
trackermap-web-545f0d8223e88631f8d7c13077ffe5bae78716cb.tar.bz2
trackermap-web-545f0d8223e88631f8d7c13077ffe5bae78716cb.zip
Only multiple language support feature
Diffstat (limited to 'modern/src/components')
-rw-r--r--modern/src/components/registration/LoginForm.js7
-rw-r--r--modern/src/components/registration/RegisterForm.js4
2 files changed, 5 insertions, 6 deletions
diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js
index c5c1d6f2..461a1ab6 100644
--- a/modern/src/components/registration/LoginForm.js
+++ b/modern/src/components/registration/LoginForm.js
@@ -62,9 +62,9 @@ const LoginForm = () => {
}
};
- const handleLanguageChange = e => {
+ const handleLanguageChange = (e) => {
setLanguage(e.target.value);
- }
+ };
return (
<StartPage>
@@ -130,7 +130,7 @@ const LoginForm = () => {
<FormControl variant="filled" fullWidth>
<InputLabel>{t('loginLanguage')}</InputLabel>
<Select value={language} onChange={handleLanguageChange}>
- {languageList.map(lang => <MenuItem key={lang.code} value={lang.code}>{lang.name}</MenuItem>)}
+ {languageList.map((lang) => <MenuItem key={lang.code} value={lang.code}>{lang.name}</MenuItem>)}
</Select>
</FormControl>
</Grid>
@@ -145,7 +145,6 @@ const LoginForm = () => {
</Grid>
</StartPage>
);
-
};
export default LoginForm;
diff --git a/modern/src/components/registration/RegisterForm.js b/modern/src/components/registration/RegisterForm.js
index 3a249c60..6260a0c5 100644
--- a/modern/src/components/registration/RegisterForm.js
+++ b/modern/src/components/registration/RegisterForm.js
@@ -4,9 +4,9 @@ import {
} from '@material-ui/core';
import { useHistory } from 'react-router-dom';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
+import ArrowForwardIcon from '@material-ui/icons/ArrowForward';
import StartPage from '../../StartPage';
import t from '../../common/localization';
-import ArrowForwardIcon from '@material-ui/icons/ArrowForward';
const useStyles = makeStyles((theme) => ({
register: {
@@ -61,7 +61,7 @@ const RegisterForm = () => {
<Grid item>
<Typography className={classes.link} color="primary">
<Link onClick={() => history.push('/login')}>
- {theme.direction === 'rtl' ? <ArrowForwardIcon /> : <ArrowBackIcon />}
+ {theme.direction === 'rtl' ? <ArrowForwardIcon /> : <ArrowBackIcon />}
</Link>
</Typography>
</Grid>