update mdc for stories

This commit is contained in:
Nate Kelley 2025-02-24 19:45:41 -07:00
parent bf41ba0e68
commit 0789055602
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 14 additions and 8 deletions

View File

@ -0,0 +1,5 @@
---
description: Rules for new stories
globs: src/components/**/*.stories.tsx
---
All new stories title with "Base/{componentName}" unless specified otherwise.

View File

@ -30,7 +30,7 @@ const meta: Meta<typeof ButtonDropdown> = {
}
},
argTypes: {
buttonType: {
variant: {
control: 'select',
options: ['default', 'black', 'primary', 'ghost', 'link']
},
@ -64,35 +64,35 @@ type Story = StoryObj<typeof ButtonDropdown>;
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'
}
};

View File

@ -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(
: '/'
}>
<AppTooltip title={'Home'} shortcuts={['G', 'H']}>
<BusterLogoNew
<BusterLogoWithText
className="w-10"
style={{ color: isUserRegistered ? undefined : token.colorTextDisabled }}
/>
</AppTooltip>