u
This commit is contained in:
@@ -99,11 +99,17 @@ export default class App extends Component {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Button color="inherit" component={Link} to="/" startIcon={<DashboardIcon />}>Views</Button>
|
<Button color="inherit" component={Link} to="/" startIcon={<DashboardIcon />}>Views</Button>
|
||||||
|
{user && (
|
||||||
|
<>
|
||||||
<Button color="inherit" component={Link} to="/live" startIcon={<ShowChartIcon />}>Live</Button>
|
<Button color="inherit" component={Link} to="/live" startIcon={<ShowChartIcon />}>Live</Button>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{user && user.role === 'admin' && (
|
{user && user.role === 'admin' && (
|
||||||
<Button color="inherit" component={Link} to="/rules" startIcon={<RuleIcon />}>Rules</Button>
|
<Button color="inherit" component={Link} to="/rules" startIcon={<RuleIcon />}>Rules</Button>
|
||||||
)}
|
)}
|
||||||
|
{user && (
|
||||||
<Button color="inherit" component={Link} to="/settings" startIcon={<SettingsIcon />}>Settings</Button>
|
<Button color="inherit" component={Link} to="/settings" startIcon={<SettingsIcon />}>Settings</Button>
|
||||||
|
)}
|
||||||
|
|
||||||
{user ? (
|
{user ? (
|
||||||
<Button color="inherit" onClick={this.handleLogout}>Logout ({user.username})</Button>
|
<Button color="inherit" onClick={this.handleLogout}>Logout ({user.username})</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user