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";
|
|
|
|
|
2022-01-02 15:19:49 +00:00
|
|
|
import UserGenPage from "./UserGenPage";
|
2022-01-02 00:19:18 +00:00
|
|
|
import MakerPage from "./MakerPage";
|
|
|
|
import BookPage from "./BookPage";
|
|
|
|
import OrderPage from "./OrderPage";
|
2022-01-12 21:22:16 +00:00
|
|
|
import InfoPage from "./InfoPage";
|
2022-01-02 00:19:18 +00:00
|
|
|
|
|
|
|
export default class HomePage extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Router >
|
|
|
|
<Switch>
|
2022-01-02 15:19:49 +00:00
|
|
|
<Route exact path='/' component={UserGenPage}/>
|
2022-01-02 00:19:18 +00:00
|
|
|
<Route path='/home'><p>You are at the start page</p></Route>
|
2022-01-12 21:22:16 +00:00
|
|
|
<Route path='/info' component={InfoPage}/>
|
2022-01-02 00:19:18 +00:00
|
|
|
<Route path='/make' component={MakerPage}/>
|
|
|
|
<Route path='/book' component={BookPage}/>
|
2022-01-02 12:59:48 +00:00
|
|
|
<Route path="/order/:orderId" component={OrderPage}/>
|
2022-01-02 00:19:18 +00:00
|
|
|
</Switch>
|
|
|
|
</Router>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|