From 66639d1aa862da15b0e3294144a4d3ad8ceb8546 Mon Sep 17 00:00:00 2001 From: Songyi Huang Date: Tue, 13 Apr 2021 21:07:43 -0700 Subject: [PATCH] init PVE Doudizhu view file --- src/App.js | 9 ++++++++- src/view/PVEView/PVEDoudizhuDemoView.js | 15 +++++++++++++++ src/view/PVEView/index.js | 3 +++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/view/PVEView/PVEDoudizhuDemoView.js create mode 100644 src/view/PVEView/index.js diff --git a/src/App.js b/src/App.js index 9d0520e..200f935 100644 --- a/src/App.js +++ b/src/App.js @@ -2,6 +2,7 @@ import React from 'react'; import { BrowserRouter as Router, Route, Redirect } from "react-router-dom"; import LeaderBoard from './view/LeaderBoard'; import { DoudizhuGameView, LeducHoldemGameView } from './view/GameView'; +import { PVEDoudizhuDemoView } from './view/PVEView'; import Navbar from "./components/Navbar"; import {makeStyles} from "@material-ui/core/styles"; @@ -13,16 +14,22 @@ const useStyles = makeStyles(() => ({ function App() { const classes = useStyles(); + + // todo: add 404 page + return (
- + {/* for test use */} + {/* */} + +
); diff --git a/src/view/PVEView/PVEDoudizhuDemoView.js b/src/view/PVEView/PVEDoudizhuDemoView.js new file mode 100644 index 0000000..1968f81 --- /dev/null +++ b/src/view/PVEView/PVEDoudizhuDemoView.js @@ -0,0 +1,15 @@ +import React from 'react'; + +class PVEDoudizhuDemoView extends React.Component { + constructor(props) { + super(props); + } + + render() { + return ( +
Under Development...
+ ); + } +} + +export default PVEDoudizhuDemoView; \ No newline at end of file diff --git a/src/view/PVEView/index.js b/src/view/PVEView/index.js new file mode 100644 index 0000000..c2b1b61 --- /dev/null +++ b/src/view/PVEView/index.js @@ -0,0 +1,3 @@ +import PVEDoudizhuDemoView from './PVEDoudizhuDemoView'; + +export {PVEDoudizhuDemoView}; \ No newline at end of file