From 361bbcffcfd3842546136062bb3c872f92ed7a79 Mon Sep 17 00:00:00 2001 From: Lucas Leblow Date: Wed, 13 Sep 2023 13:57:23 -0600 Subject: [PATCH] Add UpdateModal story --- .../widgets/update/UpdateModal.stories.tsx | 27 +++++++++++++++++++ .../components/widgets/update/UpdateModal.tsx | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 packages/desktop/src/renderer/components/widgets/update/UpdateModal.stories.tsx diff --git a/packages/desktop/src/renderer/components/widgets/update/UpdateModal.stories.tsx b/packages/desktop/src/renderer/components/widgets/update/UpdateModal.stories.tsx new file mode 100644 index 0000000000..a12096b6c1 --- /dev/null +++ b/packages/desktop/src/renderer/components/widgets/update/UpdateModal.stories.tsx @@ -0,0 +1,27 @@ +import React from 'react' +import { ComponentMeta, ComponentStory } from '@storybook/react' + +import { withTheme } from '../../../storybook/decorators' +import UpdateModal, { UpdateModalProps } from './UpdateModal' + +const Template: ComponentStory = args => { + return +} + +export const Component = Template.bind({}) + +const args: UpdateModalProps = { + open: true, + handleClose: function (): void {}, + handleUpdate: function (): void {}, +} + +Component.args = args + +const component: ComponentMeta = { + title: 'Components/UpdateModal', + decorators: [withTheme], + component: UpdateModal, +} + +export default component diff --git a/packages/desktop/src/renderer/components/widgets/update/UpdateModal.tsx b/packages/desktop/src/renderer/components/widgets/update/UpdateModal.tsx index 85ae6a0d1a..9f372f17fa 100644 --- a/packages/desktop/src/renderer/components/widgets/update/UpdateModal.tsx +++ b/packages/desktop/src/renderer/components/widgets/update/UpdateModal.tsx @@ -69,7 +69,7 @@ const StyledModalContent = styled(Grid)(({ theme }) => ({ }, })) -interface UpdateModalProps { +export interface UpdateModalProps { open: boolean handleClose: () => void handleUpdate: () => void