Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Update story
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Jun 1, 2020
1 parent e377c3d commit ded8763
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/@next/components/organisms/CartRow/stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from "react";

import { CartRow } from ".";
import { DEFAULT_PROPS } from "./fixtures";
import { MemoryRouter } from "react-router";

const STORY_PROPS = {
onQuantityChange: action("onQuantityChange has been called"),
Expand All @@ -13,4 +14,8 @@ const STORY_PROPS = {

storiesOf("@components/organisms/CartRow", module)
.addParameters({ component: CartRow })
.add("default", () => <CartRow {...STORY_PROPS} />);
.add("default", () => (
<MemoryRouter>
<CartRow {...STORY_PROPS} />
</MemoryRouter>
));

0 comments on commit ded8763

Please sign in to comment.