|
|
@ -63,7 +63,7 @@ class Base extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
console.log('came here/////');
|
|
|
|
console.log('came to base ../////');
|
|
|
|
if (this.state.user !== null) {
|
|
|
|
if (this.state.user !== null) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -107,12 +107,13 @@ class Store extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
|
|
|
|
console.log('came to store');
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="App">
|
|
|
|
<div className="App">
|
|
|
|
<Router basename="store" history={history}>
|
|
|
|
<Router basename="store" history={history}>
|
|
|
|
<Switch>
|
|
|
|
<Switch>
|
|
|
|
<Route path="/login" component={Login}/>
|
|
|
|
<Route exact path="/login" component={Login}/>
|
|
|
|
<Route path="/logout" component={Login}/>
|
|
|
|
<Route exact path="/logout" component={Login}/>
|
|
|
|
<Route component={Base}/>
|
|
|
|
<Route component={Base}/>
|
|
|
|
</Switch>
|
|
|
|
</Switch>
|
|
|
|
</Router>
|
|
|
|
</Router>
|
|
|
|