Skip to content

Commit

Permalink
Fix Links
Browse files Browse the repository at this point in the history
Signed-off-by: Shinnosuke Sawada-Dazai <shin@warashi.dev>
  • Loading branch information
Warashi committed Sep 19, 2024
1 parent 8d291d0 commit 2da57f0
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions web/src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,33 +151,37 @@ export const Header: FC = memo(function Header() {
<>
<Link
component={RouterLink}
className={classes.link}
activeClassName={classes.activeLink}
className={
location.pathname === PAGE_PATH_APPLICATIONS
? classes.activeLink
: classes.link
}
color="inherit"
to={PAGE_PATH_APPLICATIONS}
isActive={() => location.pathname === PAGE_PATH_APPLICATIONS}
>
Applications
</Link>
<Link
component={RouterLink}
className={classes.link}
activeClassName={classes.activeLink}
className={
location.pathname === PAGE_PATH_DEPLOYMENTS
? classes.activeLink
: classes.link
}
color="inherit"
to={PAGE_PATH_DEPLOYMENTS}
isActive={() => location.pathname === PAGE_PATH_DEPLOYMENTS}
>
Deployments
</Link>
<Link
component={RouterLink}
className={classes.link}
activeClassName={classes.activeLink}
color="inherit"
to={PAGE_PATH_DEPLOYMENT_CHAINS}
isActive={() =>
className={
location.pathname === PAGE_PATH_DEPLOYMENT_CHAINS
? classes.activeLink
: classes.link
}
color="inherit"
to={PAGE_PATH_DEPLOYMENT_CHAINS}
>
Chains
</Link>
Expand Down

0 comments on commit 2da57f0

Please sign in to comment.