import React, { Component } from "react"; import { BrowserRouter as Router, Switch, Route, Link, Redirect,useHistory } from "react-router-dom"; import UserGenPage from "./UserGenPage"; import MakerPage from "./MakerPage"; import BookPage from "./BookPage"; import OrderPage from "./OrderPage"; import BottomBar from "./BottomBar"; export default class HomePage extends Component { constructor(props) { super(props); this.state = { nickname: null, token: null, avatarLoaded: false, buyChecked: false, sellChecked: false, bookType:2, bookCurrency:0, bookCurrencyCode:'ANY', } } setAppState=(newState)=>{ this.setState(newState) } redirectTo(location) { this.props.history.push(location); } render() { return (
}/> }/> }/>
); } }