Skip to content

Commit 5eb1bea

Browse files
committed
[fix-sb-viewports] remove modes config for stories files that disable snapshots anyways
1 parent dc3a392 commit 5eb1bea

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

__docs__/wonder-blocks-modal/modal-dialog.stories.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import ComponentInfo from "../components/component-info";
1616
import packageConfig from "../../packages/wonder-blocks-modal/package.json";
1717
import modalDialogArgtypes from "./modal-dialog.argtypes";
18-
import {allModes} from "../../.storybook/modes";
1918

2019
/**
2120
* `ModalDialog` is a component that contains these elements:
@@ -54,10 +53,6 @@ export default {
5453
},
5554
},
5655
chromatic: {
57-
modes: {
58-
small: allModes.small,
59-
large: allModes.large,
60-
},
6156
// We already have screenshots in one-pane-dialog.stories.tsx
6257
disableSnapshot: true,
6358
},
@@ -219,13 +214,6 @@ export const WithLauncher: StoryComponentType = {
219214
</ModalLauncher>
220215
);
221216
},
222-
parameters: {
223-
chromatic: {
224-
// Don't take screenshots of this story since it would only show a
225-
// button and not the actual modal.
226-
disableSnapshot: true,
227-
},
228-
},
229217
};
230218

231219
const styles = StyleSheet.create({

__docs__/wonder-blocks-modal/modal-footer.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import packageConfig from "../../packages/wonder-blocks-modal/package.json";
1616

1717
import ComponentInfo from "../components/component-info";
18-
import {allModes} from "../../.storybook/modes";
1918

2019
const longBody = (
2120
<>
@@ -105,10 +104,6 @@ export default {
105104
},
106105
},
107106
chromatic: {
108-
modes: {
109-
small: allModes.small,
110-
large: allModes.large,
111-
},
112107
// We already have screenshots of other stories in
113108
// one-pane-dialog.stories.tsx
114109
disableSnapshot: true,

__docs__/wonder-blocks-modal/modal-header.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import packageConfig from "../../packages/wonder-blocks-modal/package.json";
1919

2020
import ComponentInfo from "../components/component-info";
2121
import ModalHeaderArgtypes from "./modal-header.argtypes";
22-
import {allModes} from "../../.storybook/modes";
2322

2423
const longBody = (
2524
<>
@@ -132,10 +131,6 @@ export default {
132131
},
133132
},
134133
chromatic: {
135-
modes: {
136-
small: allModes.small,
137-
large: allModes.large,
138-
},
139134
// We already have screenshots of other stories in
140135
// one-pane-dialog.stories.tsx
141136
disableSnapshot: true,

0 commit comments

Comments
 (0)