Skip to content

Commit 7f4067a

Browse files
committed
remove gallery from the default formats in article meta stories
1 parent 4bf30d7 commit 7f4067a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dotcom-rendering/src/components/ArticleMeta.apps.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
22
import { leftColumnDecorator } from '../../.storybook/decorators/gridDecorators';
33
import { defaultFormats } from '../../.storybook/decorators/splitThemeDecorator';
44
import { allModes } from '../../.storybook/modes';
5+
import type { ArticleFormat } from '../lib/articleFormat';
56
import {
67
ArticleDesign,
78
ArticleDisplay,
@@ -59,7 +60,9 @@ export const WithFollowStory = {
5960
config: {
6061
renderingTarget: 'Apps',
6162
},
62-
formats: defaultFormats,
63+
formats: defaultFormats.filter(
64+
(format: ArticleFormat) => format.design !== ArticleDesign.Gallery,
65+
),
6366
},
6467
} satisfies Story;
6568

dotcom-rendering/src/components/ArticleMeta.web.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { allModes } from '../../.storybook/modes';
1212
import {
1313
ArticleDesign,
1414
ArticleDisplay,
15+
type ArticleFormat,
1516
getAllThemes,
1617
Pillar,
1718
} from '../lib/articleFormat';
@@ -64,7 +65,9 @@ export const Default = {
6465
shortUrlId: '',
6566
},
6667
parameters: {
67-
formats: defaultFormats,
68+
formats: defaultFormats.filter(
69+
(format: ArticleFormat) => format.design !== ArticleDesign.Gallery,
70+
),
6871
},
6972
decorators: [leftColumnDecorator],
7073
} satisfies Story;

0 commit comments

Comments
 (0)