From 9b6e389da1b4686fb36f08264e941b663f751569 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Thu, 20 Aug 2020 15:46:21 +0200 Subject: [PATCH] update story --- stories/5-AlertPanel.stories.js | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/stories/5-AlertPanel.stories.js b/stories/5-AlertPanel.stories.js index e7e03269f1..9bde217a0f 100644 --- a/stories/5-AlertPanel.stories.js +++ b/stories/5-AlertPanel.stories.js @@ -3,22 +3,16 @@ import { AlertVariant, Button } from '@patternfly/react-core'; import { storiesOf } from '@storybook/react'; import { AlertPanel } from '../src/components/alert/AlertPanel'; -import { withAlerts, useAlerts } from '../src/components/alert/Alerts'; +import { useAlerts } from '../src/components/alert/Alerts'; -storiesOf('Alert Panel', module) +storiesOf('Alert Panel') .add('api', () => { }} />) .add('add alert', () => { - const Comp = () => { - const [alerts, add, hide] = useAlerts(); - return ( - <> - - - - ); - } - const WrapperComponent = withAlerts(Comp); + const [add, alerts, hide] = useAlerts(); return ( - + <> + + + ); });