From c173276f0adb73e29d8ca47c71766234996a033d Mon Sep 17 00:00:00 2001 From: Kyle Gach Date: Wed, 8 Nov 2023 17:39:50 -0700 Subject: [PATCH] Remove concept of active "framework" - See: https://github.com/storybookjs/frontpage/pull/620 --- src/components/Nav/MobileMenu.stories.tsx | 4 +--- src/components/Nav/MobileMenu.tsx | 4 +--- src/components/Nav/Nav.stories.tsx | 2 +- src/components/Nav/Nav.tsx | 11 +---------- src/components/Search.stories.tsx | 1 - src/components/Search.tsx | 10 +--------- src/components/SearchBlock.tsx | 2 +- src/components/SubNav/SubNav.stories.tsx | 10 +++++----- 8 files changed, 11 insertions(+), 33 deletions(-) diff --git a/src/components/Nav/MobileMenu.stories.tsx b/src/components/Nav/MobileMenu.stories.tsx index 75f82c9..785268d 100644 --- a/src/components/Nav/MobileMenu.stories.tsx +++ b/src/components/Nav/MobileMenu.stories.tsx @@ -7,6 +7,4 @@ export default { component: MobileMenu, }; -export const Default = () => ( - -); +export const Default = () => ; diff --git a/src/components/Nav/MobileMenu.tsx b/src/components/Nav/MobileMenu.tsx index 5946a39..032bfff 100644 --- a/src/components/Nav/MobileMenu.tsx +++ b/src/components/Nav/MobileMenu.tsx @@ -17,7 +17,6 @@ interface MobileMenuProps { navLinks: Links; inverse?: boolean; monochrome?: boolean; - framework: string; version: string; apiKey: string; } @@ -27,7 +26,6 @@ export const MobileMenu = ({ navLinks, inverse, monochrome, - framework, version, apiKey, }: MobileMenuProps) => { @@ -46,7 +44,7 @@ export const MobileMenu = ({ - + {mobileGroupsWithLinks.map((group) => ( {group.items.map((item) => ( diff --git a/src/components/Nav/Nav.stories.tsx b/src/components/Nav/Nav.stories.tsx index 7731746..e4832bf 100644 --- a/src/components/Nav/Nav.stories.tsx +++ b/src/components/Nav/Nav.stories.tsx @@ -88,7 +88,7 @@ export const FullStack = () => ( link="https://storybook.js.org/blog/storybook-lazy-compilation-for-webpack/" githubStarCount={73724} /> -