Skip to content

Commit

Permalink
🚨 Fixed linter warnings in story
Browse files Browse the repository at this point in the history
  • Loading branch information
pomfrida committed Oct 30, 2020
1 parent 2f13712 commit 92505cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/storybook-react/stories/Popover.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ export const Default: Story<PopoverProps> = (args) => {
}

export const Placements: Story<PopoverProps> = () => {
const [active, setActive] = React.useState(null)
const [active, setActive] = React.useState('')

const handleClick = (event: React.SyntheticEvent) => {
setActive(event.currentTarget.id)
}

const handleClose = () => {
setActive(null)
setActive('')
}

const Content = () => (
Expand Down Expand Up @@ -269,7 +269,7 @@ export const Placements: Story<PopoverProps> = () => {
}

export const ActivationTypes: Story<PopoverProps> = () => {
const [active, setActive] = React.useState(null)
const [active, setActive] = React.useState('')

const handleClick = (event: React.SyntheticEvent) => {
setActive(event.currentTarget.id)
Expand All @@ -283,7 +283,7 @@ export const ActivationTypes: Story<PopoverProps> = () => {
}

const handleClose = () => {
setActive(null)
setActive('')
}

const Content = () => (
Expand Down

0 comments on commit 92505cb

Please sign in to comment.