Skip to content

Commit

Permalink
refactored links in header
Browse files Browse the repository at this point in the history
all-time no longer dropdown (for now)
about refers to github
  • Loading branch information
Qanpi committed Jan 9, 2024
1 parent 8638fcc commit e7c6b56
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions client/src/features/viewer/header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BugReport, Menu as MenuIcon } from "@mui/icons-material";
import { BugReport, GitHub, Menu as MenuIcon } from "@mui/icons-material";
import {
Box,
ClickAwayListener,
Expand Down Expand Up @@ -125,10 +125,15 @@ function Header() {
{isAdmin ?
<MenuItem>Dashboard</MenuItem> : null}
</Link>,
<Link to="/about">
<MenuItem>About</MenuItem>
<Link to="/hall-of-fame">
<MenuItem>Hall of Fame</MenuItem>
</Link>,
<Link to="https://github.com/Qanpi/copa">
<MenuItem>
<GitHub sx={{mr: 1}}></GitHub>
About
</MenuItem>
</Link>,

]

const tournamentHeader = (
Expand Down Expand Up @@ -175,14 +180,14 @@ function Header() {
<DropdownMenu anchor={tournamentHeader}>
{tournamentSublinks}
</DropdownMenu>
<DropdownMenu anchor={<Typography noWrap>All-time</Typography>}>
{/* <Link to="/teams">
{/* <DropdownMenu anchor={<Typography noWrap>All-time</Typography>}>
<Link to="/teams">
<AllTeams></AllTeams>
</Link> */}
</Link>
<Link to="/hall-of-fame">
<MenuItem>Hall of Fame</MenuItem>
</Link>
</DropdownMenu>
</DropdownMenu> */}

{links.slice((isAdmin ? 1 : 2))}
</Stack>
Expand Down

0 comments on commit e7c6b56

Please sign in to comment.