Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Oct 31, 2024
1 parent 86633f9 commit dc5b4ac
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dotcom-rendering/src/components/DecideContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import { NavList } from './NavList';
import { ScrollableHighlights } from './ScrollableHighlights.importable';
import { ScrollableMedium } from './ScrollableMedium.importable';
import { ScrollableSmall } from './ScrollableSmall.importable';
import { StaticMediumFour } from './StaticMediumFour';
import { StaticFeatureTwo } from './StaticFeatureTwo';
import { StaticMediumFour } from './StaticMediumFour';

type Props = {
trails: DCRFrontCard[];
Expand Down
41 changes: 41 additions & 0 deletions dotcom-rendering/src/components/ScrollableFeature.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { breakpoints } from '@guardian/source/foundations';
import type { Meta, StoryObj } from '@storybook/react';
import { discussionApiUrl } from '../../fixtures/manual/discussionApiUrl';
import { trails } from '../../fixtures/manual/highlights-trails';
import { FrontSection } from './FrontSection';
import { ScrollableFeature } from './ScrollableFeature.importable';

Check failure on line 6 in dotcom-rendering/src/components/ScrollableFeature.stories.tsx

View workflow job for this annotation

GitHub Actions / lint / check

Unable to resolve path to module './ScrollableFeature.importable'

export default {
title: 'Components/ScrollableFeature',
component: ScrollableFeature,
parameters: {
chromatic: {
viewports: [
breakpoints.mobile,
breakpoints.tablet,
breakpoints.wide,
],
},
},
args: {
trails,
containerPalette: undefined,
absoluteServerTimes: true,
imageLoading: 'eager',
},
} as Meta;

type Story = StoryObj<typeof ScrollableFeature>;

export const WithFrontSection = {
render: (args) => (
<FrontSection
title="Scrollable feature"
discussionApiUrl={discussionApiUrl}
editionId={'UK'}
showTopBorder={false}
>
<ScrollableFeature {...args} />
</FrontSection>
),
} satisfies Story;

0 comments on commit dc5b4ac

Please sign in to comment.