Skip to content

Commit 75c4f53

Browse files
committed
update menu links
1 parent 59dd38b commit 75c4f53

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/routes/layout/Header/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { memo } from "react";
33

44
import { Branding } from "./Branding";
55
import { MenuButton } from "./MenuButton";
6+
import { PageLinks } from "../links/PageLinks";
67

78
export const Component = () => (
89
<div className='w-screen flex justify-between items-center p-2 border-b border-primary-dark'>
@@ -12,7 +13,9 @@ export const Component = () => (
1213
</div>
1314
<PinnedConversion />
1415

15-
<div className='hidden sm:block' />
16+
<div className='hidden md:block md:pr-4 md:w-[240px] [&>div]:flex-row [&>div]:justify-end [&>div]:text-lg [&>div]:gap-2'>
17+
<PageLinks />
18+
</div>
1619
</div>
1720
);
1821

src/routes/layout/Header/MenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function MenuButton() {
77
const [_, setIsMenuOpen] = useAtom(menuOpenAtom);
88

99
return (
10-
<button type='button' onClick={() => setIsMenuOpen((prev) => !prev)}>
10+
<button type='button' onClick={() => setIsMenuOpen((prev) => !prev)} className='inline-block md:hidden'>
1111
<Menu className='w-8 h-8' />
1212
</button>
1313
);

src/routes/layout/links/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Link = ({ Icon, to, text }: { Icon?: any; to: string; text: string
1717
{Icon ? (
1818
<Icon />
1919
) : (
20-
<ChevronRight className={cn("w-0 h-6 transition-all group-hover:w-6 ", isActive ? "w-6" : undefined)} />
20+
<ChevronRight className={cn("w-0 h-6 transition-all group-hover:w-4 ", isActive ? "w-4" : undefined)} />
2121
)}{" "}
2222
<span>{text}</span>
2323
</>
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
import { Construction } from "lucide-react";
21
import { Link } from "./Link";
32

43
export const PageLinks = () => (
54
<div className='flex flex-col text-2xl w-max text-primary-dark'>
65
<Link to='/' text='Home' />
76
<Link to='/charts' text='Charts' />
87
<Link to='/faq' text='F.A.Q.' />
9-
<div className='flex flex-col mt-4 gap-1 text-primary-darker'>
10-
<Link to='/settings' text='Settings' Icon={Construction} />
11-
</div>
128
</div>
139
);

0 commit comments

Comments
 (0)