Skip to content

Commit e74da9e

Browse files
committed
Fix typo. make videoId mandatory
1 parent e26099b commit e74da9e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const audioButtonStyles = css`
4747

4848
type Props = {
4949
src: string;
50-
videoId?: string;
50+
videoId: string;
5151
width?: number;
5252
height?: number;
5353
hasAudio?: boolean;

dotcom-rendering/src/components/LoopVideo.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const Default = {
1414
name: 'Default',
1515
args: {
1616
src: 'https://uploads.guim.co.uk/2024/10/01/241001HeleneLoop_2.mp4',
17+
videoId: 'test-video-1',
1718
fallbackImage: (
1819
<CardPicture
1920
mainImage="https://i.guim.co.uk/img/media/13dd7e5c4ca32a53cd22dfd90ac1845ef5e5d643/91_0_1800_1080/master/1800.jpg?width=465&dpr=1&s=none&crop=5%3A4"
@@ -24,7 +25,7 @@ export const Default = {
2425
},
2526
} satisfies StoryObj<typeof LoopVideo>;
2627

27-
export const WithouAudio = {
28+
export const WithoutAudio = {
2829
name: 'Without Audio',
2930
args: {
3031
...Default.args,

0 commit comments

Comments
 (0)