Skip to content

Commit

Permalink
fixup! fixup! Fix logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Feb 24, 2024
1 parent ab6f9ae commit 9a62cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/_layout.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
font-weight: 500;

@mixin hover {
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-4));
}

&[data-active] {
Expand Down
11 changes: 2 additions & 9 deletions frontend/src/pages/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,12 @@ function getMenuItemsForLink(
pathName: string
) {
const menuItems = link.links?.map((item) => (
<UnstyledButton
key={item.label}
className={classes.link}
onClick={async () => {
await router.push(item.link);
}}
data-active={pathName === item.link || undefined}
>
<a key={item.label} className={classes.link} href={item.link}>
<Center>
<item.icon />
<span style={{ marginLeft: '0.25rem', marginTop: '0.2rem' }}>{item.label}</span>
</Center>
</UnstyledButton>
</a>
));
return (
<Menu key={link.label} trigger="hover" transitionProps={{ exitDuration: 0 }} withinPortal>
Expand Down

0 comments on commit 9a62cf2

Please sign in to comment.