From 2d9680ceb6237891888085e6be9d8113f9a127f3 Mon Sep 17 00:00:00 2001 From: Dylan Kilgore Date: Tue, 17 Oct 2023 10:02:34 -0700 Subject: [PATCH] fix: panel: ensures there is no element when footer is not implemented --- src/components/Panel/Panel.stories.tsx | 41 +- src/components/Panel/Panel.test.tsx | 23 +- src/components/Panel/Panel.tsx | 2 +- .../Panel/__snapshots__/Panel.test.tsx.snap | 576 +++++++++++++++++- 4 files changed, 618 insertions(+), 24 deletions(-) diff --git a/src/components/Panel/Panel.stories.tsx b/src/components/Panel/Panel.stories.tsx index c1343e841..859ee0d96 100644 --- a/src/components/Panel/Panel.stories.tsx +++ b/src/components/Panel/Panel.stories.tsx @@ -3,8 +3,8 @@ import { Stories } from '@storybook/addon-docs'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { Panel, PanelSize } from './'; import { PanelHeader } from './PanelHeader'; +import { Button, ButtonVariant } from '../Button'; import { IconName } from '../Icon'; -import { PrimaryButton } from '../Button'; export default { title: 'Panel', @@ -107,12 +107,20 @@ const Panel_Story: ComponentStory = (args) => { const [visible, setVisible] = useState(false); return ( <> - setVisible(true)} /> +