()
| 42 | }; |
| 43 | |
| 44 | render() { |
| 45 | let {isFetching} = this.props; |
| 46 | return ( |
| 47 | <Router> |
| 48 | <div> |
| 49 | <Switch> |
| 50 | <Route path='/404' component={NotFound}/> |
| 51 | <Route path='/admin' component={Admin}/> |
| 52 | <Route component={Front}/> |
| 53 | </Switch> |
| 54 | {isFetching && <Loading/>} |
| 55 | {this.props.notification && this.props.notification.content ? |
| 56 | (this.props.notification.type === 1 ? |
| 57 | this.openNotification('success', this.props.notification.content) : |
| 58 | this.openNotification('error', this.props.notification.content)) : |
| 59 | null} |
| 60 | </div> |
| 61 | </Router> |
| 62 | ) |
| 63 | } |
| 64 | |
| 65 | componentDidMount() { |
| 66 | this.props.user_auth(); |
nothing calls this directly
no test coverage detected