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)); }