diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 23:19:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 23:19:33 -0700 |
commit | e5f07d30df69c1fff28cf1ff8502e4843a8b543c (patch) | |
tree | adc9bf04df3a911e8e0f7bda7df815cd8669113d /modern/src/settings | |
parent | 26f4e5835d5fb2f0b5035837e2e90ef012b242f0 (diff) | |
download | trackermap-web-e5f07d30df69c1fff28cf1ff8502e4843a8b543c.tar.gz trackermap-web-e5f07d30df69c1fff28cf1ff8502e4843a8b543c.tar.bz2 trackermap-web-e5f07d30df69c1fff28cf1ff8502e4843a8b543c.zip |
Migrate components
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/DriversPage.js | 3 | ||||
-rw-r--r-- | modern/src/settings/OptionsLayout/useRoutes.js | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/DriversPage.js b/modern/src/settings/DriversPage.js index ad3c398e..11419cf1 100644 --- a/modern/src/settings/DriversPage.js +++ b/modern/src/settings/DriversPage.js @@ -3,10 +3,10 @@ import { TableContainer, Table, TableRow, TableCell, TableHead, TableBody, makeStyles, IconButton, } from '@material-ui/core'; import MoreVertIcon from '@material-ui/icons/MoreVert'; -import t from '../LocalizationProvider'; import { useEffectAsync } from '../reactHelper'; import EditCollectionView from '../EditCollectionView'; import OptionsLayout from './OptionsLayout'; +import { useTranslation } from '../LocalizationProvider'; const useStyles = makeStyles((theme) => ({ columnAction: { @@ -17,6 +17,7 @@ const useStyles = makeStyles((theme) => ({ const DriversView = ({ updateTimestamp, onMenuClick }) => { const classes = useStyles(); + const t = useTranslation(); const [items, setItems] = useState([]); diff --git a/modern/src/settings/OptionsLayout/useRoutes.js b/modern/src/settings/OptionsLayout/useRoutes.js index f38736f5..4f0621ca 100644 --- a/modern/src/settings/OptionsLayout/useRoutes.js +++ b/modern/src/settings/OptionsLayout/useRoutes.js @@ -9,7 +9,6 @@ import BuildIcon from '@material-ui/icons/Build'; import PeopleIcon from '@material-ui/icons/People'; import BarChartIcon from '@material-ui/icons/BarChart'; import { getIsAdmin, getUserId } from '../../common/selectors'; -import t from '../../LocalizationProvider'; const accountRoute = { name: t('settingsUser'), |