Skip to content

Commit

Permalink
Add UpdateModal story
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow committed Sep 14, 2023
1 parent 2ffb942 commit 361bbcf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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<typeof UpdateModal> = args => {
return <UpdateModal {...args} />
}

export const Component = Template.bind({})

const args: UpdateModalProps = {
open: true,
handleClose: function (): void {},
handleUpdate: function (): void {},
}

Component.args = args

const component: ComponentMeta<typeof UpdateModal> = {
title: 'Components/UpdateModal',
decorators: [withTheme],
component: UpdateModal,
}

export default component
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const StyledModalContent = styled(Grid)(({ theme }) => ({
},
}))

interface UpdateModalProps {
export interface UpdateModalProps {
open: boolean
handleClose: () => void
handleUpdate: () => void
Expand Down

0 comments on commit 361bbcf

Please sign in to comment.