0
0
Fork 0
This commit is contained in:
Xeltica 2021-09-14 14:28:40 +09:00
parent d06f2384dc
commit 230e952c84
19 changed files with 312 additions and 115 deletions

View file

@ -5,15 +5,17 @@ import { SessionDataPage } from '../components/SessionDataPage';
import { Ranking } from '../components/Ranking';
import { Tab, TabItem } from '../components/Tab';
import { SettingPage } from '../components/SettingPage';
import { useTranslation } from 'react-i18next';
export const IndexSessionPage: React.VFC = () => {
const [selectedTab, setSelectedTab] = useState<number>(0);
const {t, i18n} = useTranslation();
const items = useMemo<TabItem[]>(() => ([
{ label: 'データ' },
{ label: 'ランキング' },
{ label: '設定' },
]), []);
{ label: t('_nav.data') },
{ label: t('_nav.ranking') },
{ label: t('_nav.settings') },
]), [i18n.language]);
const component = useMemo(() => {
switch (selectedTab) {