mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2026-01-27 12:34:48 +00:00
chore: update deps, apply updated eslint ocnfig
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
import { useState } from 'react'
|
||||
|
||||
import { DeleteDeckDialog } from './'
|
||||
import { Button } from '@/components'
|
||||
import { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import { DeleteDeckDialog } from './'
|
||||
|
||||
import { Button } from '@/components'
|
||||
|
||||
const meta = {
|
||||
title: 'Decks/Delete Deck Dialog',
|
||||
component: DeleteDeckDialog,
|
||||
tags: ['autodocs'],
|
||||
title: 'Decks/Delete Deck Dialog',
|
||||
} satisfies Meta<typeof DeleteDeckDialog>
|
||||
|
||||
export default meta
|
||||
@@ -18,8 +16,8 @@ type Story = StoryObj<typeof meta>
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
deckName: 'Deck Name',
|
||||
open: true,
|
||||
onOpenChange: () => {},
|
||||
open: true,
|
||||
},
|
||||
render: args => {
|
||||
const [open, setOpen] = useState(false)
|
||||
@@ -30,10 +28,10 @@ export const Default: Story = {
|
||||
<Button onClick={() => setOpen(true)}>Open Modal</Button>
|
||||
<DeleteDeckDialog
|
||||
{...args}
|
||||
onOpenChange={setOpen}
|
||||
open={open}
|
||||
onCancel={closeModal}
|
||||
onConfirm={closeModal}
|
||||
onOpenChange={setOpen}
|
||||
open={open}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user