From e6f906dbb565abdb29297ec67db3c922135c628c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 2 Sep 2021 23:20:12 -0700 Subject: Migrate components --- modern/src/components/registration/RegisterForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modern/src/components') diff --git a/modern/src/components/registration/RegisterForm.js b/modern/src/components/registration/RegisterForm.js index 2d7fa6f9..2da33a28 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(''); -- cgit v1.2.3