From 0789055602a6aeab8aa014e13d8f6ad539806a2b Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 24 Feb 2025 19:45:41 -0700 Subject: [PATCH] update mdc for stories --- web/.cursor/rules/components_ui_stories.mdc | 5 +++++ .../components/ui/buttons/ButtonDropdown.stories.tsx | 12 ++++++------ .../controllers/AppSidebar/AppSidebarTopItems.tsx | 5 +++-- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 web/.cursor/rules/components_ui_stories.mdc diff --git a/web/.cursor/rules/components_ui_stories.mdc b/web/.cursor/rules/components_ui_stories.mdc new file mode 100644 index 000000000..6ecb59b67 --- /dev/null +++ b/web/.cursor/rules/components_ui_stories.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for new stories +globs: src/components/**/*.stories.tsx +--- +All new stories title with "Base/{componentName}" unless specified otherwise. \ No newline at end of file diff --git a/web/src/components/ui/buttons/ButtonDropdown.stories.tsx b/web/src/components/ui/buttons/ButtonDropdown.stories.tsx index 73bd70528..462e5f559 100644 --- a/web/src/components/ui/buttons/ButtonDropdown.stories.tsx +++ b/web/src/components/ui/buttons/ButtonDropdown.stories.tsx @@ -30,7 +30,7 @@ const meta: Meta = { } }, argTypes: { - buttonType: { + variant: { control: 'select', options: ['default', 'black', 'primary', 'ghost', 'link'] }, @@ -64,35 +64,35 @@ type Story = StoryObj; export const Default: Story = { args: { buttonText: 'Button Text', - buttonType: 'default' + variant: 'default' } }; export const Primary: Story = { args: { buttonText: 'Primary Button', - buttonType: 'primary' + variant: 'primary' } }; export const Black: Story = { args: { buttonText: 'Black Button', - buttonType: 'black' + variant: 'black' } }; export const Ghost: Story = { args: { buttonText: 'Ghost Button', - buttonType: 'ghost' + variant: 'ghost' } }; export const Link: Story = { args: { buttonText: 'Link Button', - buttonType: 'link' + variant: 'link' } }; diff --git a/web/src/controllers/AppSidebar/AppSidebarTopItems.tsx b/web/src/controllers/AppSidebar/AppSidebarTopItems.tsx index c3ee47e1a..4fb3a1dee 100644 --- a/web/src/controllers/AppSidebar/AppSidebarTopItems.tsx +++ b/web/src/controllers/AppSidebar/AppSidebarTopItems.tsx @@ -3,7 +3,7 @@ import { Button, ConfigProvider } from 'antd'; import Link from 'next/link'; import { BusterRoutes, BusterRoutesWithArgsRoute } from '@/routes'; import { AppMaterialIcons } from '@/components/ui'; -import { BusterLogoNew } from '@/assets/svg/BusterLogoWithText'; +import { BusterLogoWithText } from '@/assets/svg/BusterLogoWithText'; import { AppTooltip } from '@/components/ui'; import { useHotkeys } from 'react-hotkeys-hook'; import { useAntToken } from '@/styles/useAntToken'; @@ -127,7 +127,8 @@ const LogoLink = React.memo( : '/' }> -