import React from 'react' import { Helmet } from 'react-helmet' import { connect } from 'react-redux' import { Redirect, Route, Switch } from 'react-router-dom' import AdminMenu from './Sports/AdminMenu' import AdminSport from './Sports/AdminSport' import AdminSports from './Sports/AdminSports' import AdminSportsAdd from './Sports/AdminSportsAdd' import AccessDenied from './../Others/AccessDenied' import NotFound from './../Others/NotFound' import { isLoggedIn } from '../../utils' class Admin extends React.Component { componentDidMount() {} render() { const { user } = this.props return (
mpwo - Admin {isLoggedIn() ? ( user.isAdmin ? ( ) : ( ) ) : ()}
) } } export default connect( state => ({ user: state.user, }) )(Admin)