Skip to content

Commit

Permalink
chore: clean up lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
green6erry committed Oct 10, 2023
1 parent 320d6ea commit 736feda
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import React, {useState, useRef, useCallback} from 'react'
import {ComponentMeta, Meta} from '@storybook/react'
import {BaseStyles, Box, ThemeProvider, useTheme} from '..'
import React, {useState, useCallback} from 'react'
import {ComponentMeta} from '@storybook/react'
import {Box, useTheme} from '..'
import {Button} from '../Button'
import {ActionMenu} from '../ActionMenu'
import {ActionList} from '../ActionList'
import {ConfirmationDialog, useConfirm} from './ConfirmationDialog'


export default {
title: 'Components/ConfirmationDialog/Features',
component: ConfirmationDialog,
} as ComponentMeta<typeof ConfirmationDialog>



export const ShorthandHook = () => {
const confirm = useConfirm()
const {theme} = useTheme()
Expand Down
6 changes: 3 additions & 3 deletions src/ConfirmationDialog/ConfirmationDialog.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback, useRef, useState } from 'react'
import React, {useCallback, useRef, useState} from 'react'
import {Meta} from '@storybook/react'
import {BaseStyles, Button, ThemeProvider} from '..'
import {BaseStyles, Button, ThemeProvider} from '..'
import {ConfirmationDialog} from './ConfirmationDialog'

export default {
Expand Down Expand Up @@ -43,4 +43,4 @@ export const Default = () => {
)}
</>
)
}
}
1 change: 0 additions & 1 deletion src/Dialog/Dialog.features.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ interface DialogStoryProps {
subtitle: boolean
}


function CustomHeader({
title,
subtitle,
Expand Down
2 changes: 1 addition & 1 deletion src/Dialog/Dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const Default = ({width, height, subtitle}: DialogStoryProps) => {
width={width}
height={height}
footerButtons={[
{buttonType: 'normal', content: 'Open Second Dialog', onClick: openSecondDialog,},
{buttonType: 'normal', content: 'Open Second Dialog', onClick: openSecondDialog},
{buttonType: 'danger', content: 'Delete the universe', onClick: onDialogClose},
{buttonType: 'primary', content: 'Proceed', onClick: openSecondDialog, autoFocus: true},
]}
Expand Down
1 change: 0 additions & 1 deletion src/Dialog/Dialog.types.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {Dialog} from './Dialog'

/* Dialog Version 2? */


export function shouldAcceptCallWithNoProps() {
return <Dialog onClose={() => null} />
}
Expand Down

0 comments on commit 736feda

Please sign in to comment.