From 0f63ee6e1a9ce3d5fb00b716b55a0845f55b40d9 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Tue, 23 Apr 2024 06:53:26 -0700 Subject: [PATCH] added missing storybook props for TS checks --- .storybook/stories/elements/lockup/Lockup.stories.tsx | 2 +- .storybook/stories/storybook-entities.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.storybook/stories/elements/lockup/Lockup.stories.tsx b/.storybook/stories/elements/lockup/Lockup.stories.tsx index a03b4e61..c0223fbc 100644 --- a/.storybook/stories/elements/lockup/Lockup.stories.tsx +++ b/.storybook/stories/elements/lockup/Lockup.stories.tsx @@ -32,7 +32,7 @@ type Story = StoryObj; // 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 }, args: { diff --git a/.storybook/stories/storybook-entities.tsx b/.storybook/stories/storybook-entities.tsx index 5d911f3e..b267109a 100644 --- a/.storybook/stories/storybook-entities.tsx +++ b/.storybook/stories/storybook-entities.tsx @@ -27,6 +27,8 @@ export const getStoryBookImage = (imageUrl?: string): MediaImage => { width: 1500, alt: "Placeholder Image", size: 123, + focalY: 50, + focalX: 50, } } } @@ -59,6 +61,8 @@ export const getStoryBookGalleryImage = (imageUrl?: string, imageCaption?: strin width: 1500, alt: "kittens", size: 123, + focalY: 50, + focalX: 50, } } }