2022-01-02 00:19:18 +00:00
|
|
|
import React, { Component } from "react";
|
|
|
|
import { BrowserRouter as Router, Switch, Route, Link, Redirect } from "react-router-dom";
|
|
|
|
|
|
|
|
import NickGenPage from "./NickGenPage";
|
|
|
|
import LoginPage from "./LoginPage.js";
|
|
|
|
import MakerPage from "./MakerPage";
|
|
|
|
import BookPage from "./BookPage";
|
|
|
|
import OrderPage from "./OrderPage";
|
|
|
|
import WaitingRoomPage from "./WaitingRoomPage";
|
|
|
|
|
|
|
|
export default class HomePage extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Router >
|
|
|
|
<Switch>
|
2022-01-02 00:37:04 +00:00
|
|
|
<Route exact path='/' component={NickGenPage}/>
|
2022-01-02 00:19:18 +00:00
|
|
|
<Route path='/home'><p>You are at the start page</p></Route>
|
|
|
|
<Route path='/login'component={LoginPage}/>
|
|
|
|
<Route path='/make' component={MakerPage}/>
|
|
|
|
<Route path='/book' component={BookPage}/>
|
|
|
|
<Route path='/order' component={OrderPage}/>
|
|
|
|
<Route path='/wait' component={WaitingRoomPage}/>
|
|
|
|
</Switch>
|
|
|
|
</Router>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|