robosats/frontend/src/components/HomePage.js

25 lines
866 B
JavaScript
Raw Normal View History

import React, { Component } from "react";
import { BrowserRouter as Router, Switch, Route, Link, Redirect } from "react-router-dom";
import UserGenPage from "./UserGenPage";
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>
<Route exact path='/' render={(props) => <UserGenPage setAppState={this.props.setAppState}/>}/>
<Route path='/make' component={MakerPage}/>
<Route path='/book' component={BookPage}/>
<Route path="/order/:orderId" component={OrderPage}/>
</Switch>
</Router>
);
}
}