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/map/StatusView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modern/src/map') diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js index f4062f5a..85009db7 100644 --- a/modern/src/map/StatusView.js +++ b/modern/src/map/StatusView.js @@ -18,8 +18,8 @@ import { } from '../common/formatter'; import { useAttributePreference } from '../common/preferences'; import RemoveDialog from '../RemoveDialog'; -import t from '../LocalizationProvider'; import { getPosition } from '../common/selectors'; +import { useTranslation } from '../LocalizationProvider'; const useStyles = makeStyles((theme) => ({ paper: { @@ -35,6 +35,7 @@ const StatusView = ({ deviceId, onShowDetails, onShowHistory, onEditClick, }) => { const classes = useStyles(); + const t = useTranslation(); const [removeDialogShown, setRemoveDialogShown] = useState(false); const device = useSelector((state) => state.devices.items[deviceId]); -- cgit v1.2.3