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";
|
|
|
|
export default class HomePage extends Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Router >
|
|
|
|
<Switch>
|
2022-01-29 19:51:26 +00:00
|
|
|
<Route exact path='/' render={(props) => <UserGenPage setAppState={this.props.setAppState}/>}/>
|
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>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|