wip
This commit is contained in:
parent
230e952c84
commit
ad366c122e
7 changed files with 68 additions and 42 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue