Skip to content

Commit

Permalink
added missing storybook props for TS checks
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Apr 23, 2024
1 parent 6febeab commit 0f63ee6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/stories/elements/lockup/Lockup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Story = StoryObj<ComponentStoryProps>;
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
export const LockupDisplay: Story = {
render: ({logoUrl, ...args}) => {
if(logoUrl) args.suUploadLogoImage = {url: logoUrl, height: 50, width: 300, size: 123}
if (logoUrl) args.suUploadLogoImage = {url: logoUrl, height: 50, width: 300, size: 123, focalY: 50, focalX: 50}
return <Lockup {...args}/>
},
args: {
Expand Down
4 changes: 4 additions & 0 deletions .storybook/stories/storybook-entities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export const getStoryBookImage = (imageUrl?: string): MediaImage => {
width: 1500,
alt: "Placeholder Image",
size: 123,
focalY: 50,
focalX: 50,
}
}
}
Expand Down Expand Up @@ -59,6 +61,8 @@ export const getStoryBookGalleryImage = (imageUrl?: string, imageCaption?: strin
width: 1500,
alt: "kittens",
size: 123,
focalY: 50,
focalX: 50,
}
}
}
Expand Down

0 comments on commit 0f63ee6

Please sign in to comment.