From 3c04ee5c0f4668075735d4d42e7e2a512a707f05 Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:29:43 +0100 Subject: [PATCH] Fix Menu description story --- packages/core/stories/menu/menu.stories.tsx | 10 ++-------- site/src/examples/menu/Descriptions.tsx | 8 +------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/core/stories/menu/menu.stories.tsx b/packages/core/stories/menu/menu.stories.tsx index fcfa12df86..6ee03a5c2b 100644 --- a/packages/core/stories/menu/menu.stories.tsx +++ b/packages/core/stories/menu/menu.stories.tsx @@ -289,7 +289,7 @@ export const IconWithGroups: StoryFn = (args) => { export const ContextMenu: StoryFn = () => { const [virtualElement, setVirtualElement] = useState( - null, + null ); const [open, setOpen] = useState(false); return ( @@ -367,13 +367,7 @@ export const Descriptions: StoryFn = (args) => { {Object.values(features).map(({ name, description, id }) => ( - + {name} {description} diff --git a/site/src/examples/menu/Descriptions.tsx b/site/src/examples/menu/Descriptions.tsx index b0ea62a4fc..9b7c38c3ff 100644 --- a/site/src/examples/menu/Descriptions.tsx +++ b/site/src/examples/menu/Descriptions.tsx @@ -39,13 +39,7 @@ export const Descriptions = (): ReactElement => { {Object.values(features).map(({ name, description, id }) => ( - + {name} {description}