chore: update deps, apply updated eslint ocnfig

This commit is contained in:
2023-10-10 16:43:55 +02:00
parent d430ee54e2
commit c6aab409b8
70 changed files with 3131 additions and 3160 deletions

View File

@@ -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}
/>
</>
)