0
0
Fork 0
This commit is contained in:
Xeltica 2021-09-24 02:35:58 +09:00
parent 230e952c84
commit ad366c122e
7 changed files with 68 additions and 42 deletions

View file

@ -2,10 +2,10 @@ import React, { useMemo, useState } from 'react';
import { Header } from '../components/Header';
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';
import { RankingPage } from '../components/RankingPage';
export const IndexSessionPage: React.VFC = () => {
const [selectedTab, setSelectedTab] = useState<number>(0);
@ -20,7 +20,7 @@ export const IndexSessionPage: React.VFC = () => {
const component = useMemo(() => {
switch (selectedTab) {
case 0: return <SessionDataPage />;
case 1: return <Ranking limit={10}/>;
case 1: return <RankingPage/>;
case 2: return <SettingPage/>;
default: return null;
}