Hide history-link
This commit is contained in:
parent
12f0984873
commit
116162ec50
|
@ -190,9 +190,11 @@ function Home(props) {
|
||||||
}
|
}
|
||||||
</Box>
|
</Box>
|
||||||
<TournamentList user={props.user} />
|
<TournamentList user={props.user} />
|
||||||
|
{props.user.isLoggedIn &&
|
||||||
<Typography variant="h5" color="#555555">
|
<Typography variant="h5" color="#555555">
|
||||||
Finished tournaments are moved to the <Link to="/history">history-page</Link>
|
Finished tournaments are moved to the <Link to="/history">history-page</Link>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
}
|
||||||
</Container>
|
</Container>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -223,7 +225,7 @@ export default function App() {
|
||||||
setUser({ isManager: false, isLoggedIn: false });
|
setUser({ isManager: false, isLoggedIn: false });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Debug mode, allow all:
|
// // Debug mode, allow all:
|
||||||
// let fetchUser = () => {
|
// let fetchUser = () => {
|
||||||
// setUser({
|
// setUser({
|
||||||
// name: "TEST USERTEST",
|
// name: "TEST USERTEST",
|
||||||
|
|
Loading…
Reference in New Issue