Skip to content

Commit

Permalink
fix(publishedmodal): fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Oct 18, 2022
1 parent 53b246e commit 60eb10f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
import { useDisclosure } from "@chakra-ui/react"
import { Button } from "@opengovsg/design-system-react"
import { ComponentMeta, Story } from "@storybook/react"
import { MemoryRouter, Route } from "react-router-dom"

import { PublishedModal } from "./PublishedModal"

const modalMeta = {
title: "Components/ReviewRequest/Published Modal",
component: PublishedModal,
decorators: [
(StoryFn) => {
return (
<MemoryRouter initialEntries={["/sites/storybook/workspace"]}>
<Route path="/sites/:siteName/workspace">
<StoryFn />
</Route>
</MemoryRouter>
)
},
],
} as ComponentMeta<typeof PublishedModal>

const Template: Story<never> = () => {
Expand Down

0 comments on commit 60eb10f

Please sign in to comment.