From 0e069c64d9d2e60b8c1f2a45c9332a9e2a30c138 Mon Sep 17 00:00:00 2001 From: "eric.crowell" Date: Mon, 17 Jun 2024 20:37:54 +0200 Subject: [PATCH] dev: Updated nav component --- .../Navigation/Navigation.stories.tsx | 36 ++++++++----------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/packages/ui/src/components/Navigation/Navigation.stories.tsx b/packages/ui/src/components/Navigation/Navigation.stories.tsx index 9feca94..2702e34 100644 --- a/packages/ui/src/components/Navigation/Navigation.stories.tsx +++ b/packages/ui/src/components/Navigation/Navigation.stories.tsx @@ -98,46 +98,38 @@ const socials: SocialLinks = [ }, ]; +const args = { + title: 'Navigation Component', + titleShort: 'Navigation', + logo, + links, + search: '#search', + modeToggle: true, + socials, +}; + export const Standard: Story = { - args: { - title: 'Navigation', - logo, - links, - search: '#search', - modeToggle: true, - socials, - }, + args, }; export const Island: Story = { args: { - title: 'Navigation', - logo, + ...args, variant: 'island', - links, - search: '#search', - modeToggle: true, - socials, }, }; export const Extended: Story = { args: { - title: 'Navigation', - logo, + ...args, variant: 'extended', - links, - search: '#search', - modeToggle: true, - socials, }, }; export const WithClassName: Story = { args: { - title: 'Navigation', + ...args, variant: 'standard', className: 'bg-red-500', - links, }, };