aboutsummaryrefslogtreecommitdiff
path: root/modern/src/EditItemView.js
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/EditItemView.js
parente5f07d30df69c1fff28cf1ff8502e4843a8b543c (diff)
downloadtrackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.gz
trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.bz2
trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.zip
Migrate components
Diffstat (limited to 'modern/src/EditItemView.js')
-rw-r--r--modern/src/EditItemView.js4
1 files changed, 3 insertions, 1 deletions
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 () => {