Skip to content

Commit

Permalink
fix duplicate story label
Browse files Browse the repository at this point in the history
  • Loading branch information
green6erry committed Oct 10, 2023
1 parent 7fcaef9 commit a98deeb
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/Dialog.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, {useState, useRef, useCallback} from 'react'
import {Meta} from '@storybook/react'
import React, { useState, useRef, useCallback } from 'react'

Check failure on line 1 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·useState,·useRef,·useCallback·` with `useState,·useRef,·useCallback`
import { Meta } from '@storybook/react'

Check failure on line 2 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·Meta·` with `Meta`

import {BaseStyles, ThemeProvider} from '.'
import {Button} from './Button'
import {Dialog, DialogWidth, DialogHeight} from './Dialog/Dialog'
import { BaseStyles, ThemeProvider } from '.'

Check failure on line 4 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·BaseStyles,·ThemeProvider·` with `BaseStyles,·ThemeProvider`
import { Button } from './Button'

Check failure on line 5 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·Button·` with `Button`
import { Dialog, DialogWidth, DialogHeight } from './Dialog/Dialog'

Check failure on line 6 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·Dialog,·DialogWidth,·DialogHeight·` with `Dialog,·DialogWidth,·DialogHeight`

/* Dialog Version 1? */

export default {
title: 'Components/Dialog',
title: 'Dialog',
component: Dialog,
decorators: [
Story => {
Expand Down Expand Up @@ -47,22 +47,22 @@ export default {
type: 'boolean',
},
},
title: {table: {disable: true}},
title: { table: { disable: true } },

Check failure on line 50 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·table:·{·disable:·true·}·` with `table:·{disable:·true}`

renderHeader: {table: {disable: true}},
renderBody: {table: {disable: true}},
renderFooter: {table: {disable: true}},
onClose: {table: {disable: true}},
role: {table: {disable: true}},
ref: {table: {disable: true}},
key: {table: {disable: true}},
footerButtons: {table: {disable: true}},
renderHeader: { table: { disable: true } },

Check failure on line 52 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·table:·{·disable:·true·}·` with `table:·{disable:·true}`
renderBody: { table: { disable: true } },

Check failure on line 53 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·table:·{·disable:·true·}·` with `table:·{disable:·true}`
renderFooter: { table: { disable: true } },

Check failure on line 54 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·table:·{·disable:·true·}·` with `table:·{disable:·true}`
onClose: { table: { disable: true } },

Check failure on line 55 in src/Dialog.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `·table:·{·disable:·true·}·` with `table:·{disable:·true}`
role: { table: { disable: true } },
ref: { table: { disable: true } },
key: { table: { disable: true } },
footerButtons: { table: { disable: true } },
},
} as Meta

const lipsum = (
<div style={{fontSize: '14px'}}>
<p style={{marginBlockStart: 0}}>
<div style={{ fontSize: '14px' }}>
<p style={{ marginBlockStart: 0 }}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque sollicitudin mauris maximus elit sagittis, nec
lobortis ligula elementum. Nam iaculis, urna nec lobortis posuere, eros urna venenatis eros, vel accumsan turpis
nunc vitae enim. Maecenas et lorem lectus. Vivamus iaculis tortor eget ante placerat, nec posuere nisl tincidunt.
Expand Down Expand Up @@ -107,7 +107,7 @@ interface DialogStoryProps {
height: DialogHeight
subtitle: boolean
}
export const Default = ({width, height, subtitle}: DialogStoryProps) => {
export const Default = ({ width, height, subtitle }: DialogStoryProps) => {
const [isOpen, setIsOpen] = useState(false)
const [secondOpen, setSecondOpen] = useState(false)
const buttonRef = useRef<HTMLButtonElement>(null)
Expand All @@ -127,9 +127,9 @@ export const Default = ({width, height, subtitle}: DialogStoryProps) => {
width={width}
height={height}
footerButtons={[
{buttonType: 'normal', content: 'Open Second Dialog', onClick: openSecondDialog},
{buttonType: 'danger', content: 'Delete the universe', onClick: onDialogClose},
{buttonType: 'primary', content: 'Proceed', onClick: openSecondDialog, autoFocus: true},
{ buttonType: 'normal', content: 'Open Second Dialog', onClick: openSecondDialog },
{ buttonType: 'danger', content: 'Delete the universe', onClick: onDialogClose },
{ buttonType: 'primary', content: 'Proceed', onClick: openSecondDialog, autoFocus: true },
]}
>
{lipsum}
Expand Down

0 comments on commit a98deeb

Please sign in to comment.