Skip to content

Commit 2dbb5d6

Browse files
committed
rename the component
1 parent f2d0ff5 commit 2dbb5d6

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dotcom-rendering/src/components/FetchOnwardsData.importable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import { palette } from '../palette';
88
import type { OnwardsSource } from '../types/onwards';
99
import type { RenderingTarget } from '../types/renderingTarget';
1010
import type { FETrailType, TrailType } from '../types/trails';
11-
import { CarousableSmallOnwards } from './CarousableSmallOnwards';
1211
import { Carousel } from './Carousel.importable';
1312
import { Placeholder } from './Placeholder';
13+
import { ScrollableSmallOnwards } from './ScrollableSmallOnwards';
1414

1515
type Props = {
1616
url: string;
@@ -91,7 +91,7 @@ export const FetchOnwardsData = ({
9191
return (
9292
<div css={minHeight}>
9393
{format.design === ArticleDesign.Gallery ? (
94-
<CarousableSmallOnwards
94+
<ScrollableSmallOnwards
9595
absoluteServerTimes={absoluteServerTimes}
9696
trails={trails}
9797
discussionApiUrl={discussionApiUrl}

dotcom-rendering/src/components/CarousableSmallOnwards.stories.tsx renamed to dotcom-rendering/src/components/ScrollableSmallOnwards.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import type { Meta, StoryObj } from '@storybook/react';
22
import { ArticleDesign, ArticleDisplay, Pillar } from '../lib/articleFormat';
33
import { getDataLinkNameCard } from '../lib/getDataLinkName';
4-
import { CarousableSmallOnwards } from './CarousableSmallOnwards';
4+
import { ScrollableSmallOnwards } from './ScrollableSmallOnwards';
55

66
const meta = {
7-
title: 'Components/CarousableSmallOnwards',
8-
component: CarousableSmallOnwards,
9-
} satisfies Meta<typeof CarousableSmallOnwards>;
7+
title: 'Components/ScrollableSmallOnwards',
8+
component: ScrollableSmallOnwards,
9+
} satisfies Meta<typeof ScrollableSmallOnwards>;
1010

1111
export default meta;
1212

1313
type Story = StoryObj<typeof meta>;
1414

15-
export const CarousableSmallOnwardsStory = {
15+
export const ScrollableSmallOnwardsStory = {
1616
args: {
1717
absoluteServerTimes: false,
1818
discussionApiUrl:

dotcom-rendering/src/components/CarousableSmallOnwards.tsx renamed to dotcom-rendering/src/components/ScrollableSmallOnwards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const getDefaultCardProps = (
119119
return defaultProps;
120120
};
121121

122-
export const CarousableSmallOnwards = (props: Props) => {
122+
export const ScrollableSmallOnwards = (props: Props) => {
123123
const trails = props.trails.slice(0, 4); // Limit to 4 cards
124124
if (trails.length !== 4) return null;
125125

dotcom-rendering/src/layouts/GalleryLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { ArticleMetaApps } from '../components/ArticleMeta.apps';
1616
import { ArticleMeta } from '../components/ArticleMeta.web';
1717
import { ArticleTitle } from '../components/ArticleTitle';
1818
import { Caption } from '../components/Caption';
19-
import { CarousableSmallOnwards } from '../components/CarousableSmallOnwards';
2019
import { DiscussionLayout } from '../components/DiscussionLayout';
2120
import { FetchMoreGalleriesData } from '../components/FetchMoreGalleriesData.importable';
2221
import { Footer } from '../components/Footer';
@@ -30,6 +29,7 @@ import { Masthead } from '../components/Masthead/Masthead';
3029
import { MostViewedFooterData } from '../components/MostViewedFooterData.importable';
3130
import { MostViewedFooterLayout } from '../components/MostViewedFooterLayout';
3231
import { OnwardsUpper } from '../components/OnwardsUpper.importable';
32+
import { ScrollableSmallOnwards } from '../components/ScrollableSmallOnwards';
3333
import { Section } from '../components/Section';
3434
import { Standfirst } from '../components/Standfirst';
3535
import { StickyBottomBanner } from '../components/StickyBottomBanner.importable';
@@ -312,7 +312,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => {
312312
show={showMerchandisingHigh}
313313
display={format.display}
314314
/>
315-
<CarousableSmallOnwards
315+
<ScrollableSmallOnwards
316316
absoluteServerTimes={absoluteServerTimes}
317317
trails={gallery.storyPackage?.trails ?? []}
318318
discussionApiUrl={discussionApiUrl}

0 commit comments

Comments
 (0)