fix(dashboard-v2): fix NavBar not loading in Storybook
This commit is contained in:
parent
c3a2f7fdbe
commit
92892bf2d2
|
@ -1,4 +1,4 @@
|
||||||
import { Link } from "gatsby";
|
import Link from "gatsby-link";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
import { screen } from "../../lib/cssHelpers";
|
import { screen } from "../../lib/cssHelpers";
|
||||||
|
|
|
@ -9,17 +9,7 @@ export default {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const Template = (props) => (
|
const Template = (props) => <NavBar {...props} />;
|
||||||
<NavBar {...props}>
|
|
||||||
<NavBarSection>
|
|
||||||
<NavBarLink href="/dashboard" active>
|
|
||||||
Dashboard
|
|
||||||
</NavBarLink>
|
|
||||||
<NavBarLink href="/files">Files</NavBarLink>
|
|
||||||
<NavBarLink href="/payments">Payments</NavBarLink>
|
|
||||||
</NavBarSection>
|
|
||||||
</NavBar>
|
|
||||||
);
|
|
||||||
|
|
||||||
export const DashboardTopNavigation = Template.bind({});
|
export const DashboardTopNavigation = Template.bind({});
|
||||||
DashboardTopNavigation.args = {};
|
DashboardTopNavigation.args = {};
|
||||||
|
|
Reference in New Issue