fix(dashboard-v2): fix NavBar not loading in Storybook

This commit is contained in:
Michał Leszczyk 2022-02-23 13:15:45 +01:00
parent c3a2f7fdbe
commit 92892bf2d2
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
2 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,4 @@
import { Link } from "gatsby";
import Link from "gatsby-link";
import styled from "styled-components";
import { screen } from "../../lib/cssHelpers";

View File

@ -9,17 +9,7 @@ export default {
},
};
const Template = (props) => (
<NavBar {...props}>
<NavBarSection>
<NavBarLink href="/dashboard" active>
Dashboard
</NavBarLink>
<NavBarLink href="/files">Files</NavBarLink>
<NavBarLink href="/payments">Payments</NavBarLink>
</NavBarSection>
</NavBar>
);
const Template = (props) => <NavBar {...props} />;
export const DashboardTopNavigation = Template.bind({});
DashboardTopNavigation.args = {};