wip
This commit is contained in:
parent
d06f2384dc
commit
230e952c84
19 changed files with 312 additions and 115 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue