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/EditItemView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modern/src/EditItemView.js') diff --git a/modern/src/EditItemView.js b/modern/src/EditItemView.js index add61004..e1aea2a9 100644 --- a/modern/src/EditItemView.js +++ b/modern/src/EditItemView.js @@ -5,9 +5,9 @@ import Container from '@material-ui/core/Container'; import Button from '@material-ui/core/Button'; import FormControl from '@material-ui/core/FormControl'; -import t from './LocalizationProvider'; import { useEffectAsync } from './reactHelper'; import OptionsLayout from './settings/OptionsLayout'; +import { useTranslation } from './LocalizationProvider'; const useStyles = makeStyles((theme) => ({ container: { @@ -27,6 +27,8 @@ const EditItemView = ({ }) => { const history = useHistory(); const classes = useStyles(); + const t = useTranslation(); + const { id } = useParams(); useEffectAsync(async () => { -- cgit v1.2.3