From 92505cb72c395011f01812c20dcf960701c688a0 Mon Sep 17 00:00:00 2001 From: Frida Erdal Date: Fri, 30 Oct 2020 09:33:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fixed=20linter=20warnings=20in?= =?UTF-8?q?=20story?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/storybook-react/stories/Popover.stories.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/storybook-react/stories/Popover.stories.tsx b/apps/storybook-react/stories/Popover.stories.tsx index 6cf0e2c8f4..1ba02b1134 100644 --- a/apps/storybook-react/stories/Popover.stories.tsx +++ b/apps/storybook-react/stories/Popover.stories.tsx @@ -81,14 +81,14 @@ export const Default: Story = (args) => { } export const Placements: Story = () => { - 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 = () => ( @@ -269,7 +269,7 @@ export const Placements: Story = () => { } export const ActivationTypes: Story = () => { - const [active, setActive] = React.useState(null) + const [active, setActive] = React.useState('') const handleClick = (event: React.SyntheticEvent) => { setActive(event.currentTarget.id) @@ -283,7 +283,7 @@ export const ActivationTypes: Story = () => { } const handleClose = () => { - setActive(null) + setActive('') } const Content = () => (