Skip to content

Commit 1344315

Browse files
committed
refactor(decorator): decorate the mergeinfographic component
1 parent e30f2b4 commit 1344315

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
1+
import { Box } from "@chakra-ui/react"
12
import { Meta, StoryObj } from "@storybook/react"
23

34
import { langViewportModes } from "../../../.storybook/modes"
5+
import { ContentContainer } from "../MdComponents"
46

57
import MergeInfographicComponent from "."
68

79
const meta = {
810
title: "Atoms / Media & Icons / MergeInfographic",
911
component: MergeInfographicComponent,
1012
parameters: {
11-
layout: "none",
13+
layout: "fullscreen",
1214
chromatic: {
1315
modes: {
1416
...langViewportModes,
1517
},
1618
},
1719
},
20+
decorators: [
21+
(Story) => (
22+
<Box maxW="1008px" mx="auto">
23+
<ContentContainer>
24+
<Story />
25+
</ContentContainer>
26+
</Box>
27+
)
28+
]
1829
} satisfies Meta<typeof MergeInfographicComponent>
1930

2031
export default meta
2132

2233
type Story = StoryObj<typeof meta>;
2334

24-
export const MergeInfographic: Story = {}
35+
export const MergeInfographic: Story = {}

0 commit comments

Comments
 (0)