Skip to content

Commit

Permalink
feat(gatsby/theme): add link to TaskBar List
Browse files Browse the repository at this point in the history
  • Loading branch information
ggdaltoso committed Aug 31, 2021
1 parent b136756 commit 7d75677
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/gatsby-theme/src/components/taskbar.js
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from 'gatsby';
import { TaskBar as R95TaskBar, List } from '@react95/core';
import * as R95Icons from '@react95/icons';

Expand All @@ -20,7 +21,12 @@ const NavList = ({ nav }) => (
}

return (
<List.Item key={slug} icon={<IconRenderer variant={variant} />}>
<List.Item
as={Link}
to={`/${slug}`}
key={slug}
icon={<IconRenderer variant={variant} />}
>
{title}
</List.Item>
);
Expand Down

0 comments on commit 7d75677

Please sign in to comment.