mirror of https://github.com/buster-so/buster.git
update mdc for stories
This commit is contained in:
parent
bf41ba0e68
commit
0789055602
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
description: Rules for new stories
|
||||
globs: src/components/**/*.stories.tsx
|
||||
---
|
||||
All new stories title with "Base/{componentName}" unless specified otherwise.
|
|
@ -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'
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue