Skip to content

Commit 3fb24b6

Browse files
committed
Link stuff in nav
1 parent 947a824 commit 3fb24b6

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

pages/_app.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ function Toolbox({ Component, pageProps }: AppProps) {
8282
if (Array.isArray(Tools[key])) {
8383
(Tools[key] as ToolboxTool[]).forEach((tool) => {
8484
children.push(
85-
<p
86-
css={tw`px-3 mx-1 pt-3 ml-1 pb-1 hover:cursor-default`}
87-
>
88-
{tool.short}
89-
</p>
85+
<Link href={tool.link}>
86+
<p
87+
css={tw`px-3 mx-1 pt-3 ml-1 pb-1 hover:cursor-default`}
88+
>
89+
{tool.short}
90+
</p>
91+
</Link>
9092
);
9193
});
9294
} else {
@@ -97,11 +99,13 @@ function Toolbox({ Component, pageProps }: AppProps) {
9799
key1
98100
].forEach((tool) => {
99101
children.push(
100-
<p
101-
css={tw`px-3 mx-1 pt-3 ml-2 pb-1 hover:cursor-default`}
102-
>
103-
{tool.short}
104-
</p>
102+
<Link href={tool.link}>
103+
<p
104+
css={tw`px-3 mx-1 pt-3 ml-2 pb-1 hover:cursor-default`}
105+
>
106+
{tool.short}
107+
</p>
108+
</Link>
105109
);
106110
});
107111
return (

0 commit comments

Comments
 (0)