aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-02 23:20:12 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-02 23:20:12 -0700
commite6f906dbb565abdb29297ec67db3c922135c628c (patch)
treea6d1c89436d066ec9171b6a68e8d5e7eeb56d2de /modern/src/components
parente5f07d30df69c1fff28cf1ff8502e4843a8b543c (diff)
downloadetbsa-traccar-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.gz
etbsa-traccar-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.bz2
etbsa-traccar-web-e6f906dbb565abdb29297ec67db3c922135c628c.zip
Migrate components
Diffstat (limited to 'modern/src/components')
-rw-r--r--modern/src/components/registration/RegisterForm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/components/registration/RegisterForm.js b/modern/src/components/registration/RegisterForm.js
index 2d7fa6f..2da33a2 100644
--- a/modern/src/components/registration/RegisterForm.js
+++ b/modern/src/components/registration/RegisterForm.js
@@ -5,7 +5,7 @@ import {
import { useHistory } from 'react-router-dom';
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import StartPage from '../../StartPage';
-import t from '../../LocalizationProvider';
+import { useTranslation } from '../../LocalizationProvider';
const useStyles = makeStyles((theme) => ({
register: {
@@ -25,6 +25,7 @@ const useStyles = makeStyles((theme) => ({
const RegisterForm = () => {
const classes = useStyles();
const history = useHistory();
+ const t = useTranslation();
const [name, setName] = useState('');
const [email, setEmail] = useState('');