From 1593b1235a77914863d6b88169b406c3cab74f81 Mon Sep 17 00:00:00 2001 From: Songyi Huang Date: Sun, 25 Apr 2021 16:44:36 -0700 Subject: [PATCH] change default page --- src/App.js | 23 +++++++++++------------ src/view/PvEView/PvEDoudizhuDemoView.js | 3 --- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/App.js b/src/App.js index ca79191..4cc85e1 100644 --- a/src/App.js +++ b/src/App.js @@ -1,15 +1,15 @@ import React from 'react'; -import { BrowserRouter as Router, Route, Redirect } from "react-router-dom"; +import { BrowserRouter as Router, Redirect, Route } from 'react-router-dom'; +import Navbar from './components/Navbar'; import LeaderBoard from './view/LeaderBoard'; -import { DoudizhuReplayView, LeducHoldemReplayView } from './view/ReplayView'; import { PvEDoudizhuDemoView } from './view/PvEView'; -import Navbar from "./components/Navbar"; +import { DoudizhuReplayView, LeducHoldemReplayView } from './view/ReplayView'; const navbarSubtitleMap = { - "/leaderboard": "", - "/replay/doudizhu": "Doudizhu", - "/replay/leduc-holdem": "Leduc Hold'em", - "/pve/doudizhu-demo": "Doudizhu PvE Demo" + '/leaderboard': '', + '/replay/doudizhu': 'Doudizhu', + '/replay/leduc-holdem': "Leduc Hold'em", + '/pve/doudizhu-demo': 'Doudizhu PvE Demo', }; function App() { @@ -17,12 +17,11 @@ function App() { return ( - -
+ +
- {/* for test use */} - {/* */} - + + {/* */} diff --git a/src/view/PvEView/PvEDoudizhuDemoView.js b/src/view/PvEView/PvEDoudizhuDemoView.js index 49c772d..eccb8bd 100644 --- a/src/view/PvEView/PvEDoudizhuDemoView.js +++ b/src/view/PvEView/PvEDoudizhuDemoView.js @@ -77,9 +77,6 @@ function PvEDoudizhuDemoView() { .join(''); }; - // todo: generate inital player / hand states - // for test use - function timeout(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); }