Skip to content

Commit 97be0d9

Browse files
committed
fix: replace with withChromaticModes
1 parent c376f7d commit 97be0d9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/stories/components/VersionModal.stories.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Box } from '@chakra-ui/react'
22
import { type Meta, type StoryObj } from '@storybook/react'
33

44
import { VersionModal } from '~/components/VersionWrapper/VersionModal'
5-
import { getMobileViewParameters } from '../utils/viewports'
5+
import { withChromaticModes } from '../utils/chromatic'
66

77
const meta: Meta<typeof VersionModal> = {
88
title: 'Components/Version Modal',
@@ -18,9 +18,11 @@ const meta: Meta<typeof VersionModal> = {
1818
),
1919
],
2020
parameters: {
21-
layout: 'fullscreen',
2221
// Prevent flaky tests due to modal animating in.
23-
chromatic: { delay: 200 },
22+
chromatic: {
23+
delay: 200,
24+
...withChromaticModes(['mobile', 'tablet', 'desktop']),
25+
},
2426
},
2527
args: {
2628
isOpen: true,
@@ -33,6 +35,3 @@ export default meta
3335
type Story = StoryObj<typeof VersionModal>
3436

3537
export const Default: Story = {}
36-
export const Mobile: Story = {
37-
parameters: getMobileViewParameters(),
38-
}

0 commit comments

Comments
 (0)