refactor: use API from new i18n package

This commit is contained in:
lawvs
2022-09-06 14:28:29 +08:00
parent 3b06d4bff5
commit 7398d318cd
7 changed files with 9 additions and 10 deletions
@@ -5,13 +5,12 @@ import {
SideBarViewIcon,
} from '@toeverything/components/icons';
import { IconButton, styled } from '@toeverything/components/ui';
import { useTranslation } from '@toeverything/datasource/i18n';
import {
useCurrentEditors,
useLocalTrigger,
useShowSettingsSidebar,
} from '@toeverything/datasource/state';
import { useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { EditorBoardSwitcher } from './EditorBoardSwitcher';
import { fsApiSupported } from './FileSystem';
import { CurrentPageTitle } from './Title';