chore(ui): lint

This commit is contained in:
psychedelicious 2024-01-06 00:13:44 +11:00 committed by Kent Keirsey
parent 1a710a4c12
commit cb7e56a9a3
2 changed files with 12 additions and 2 deletions

View File

@ -28,7 +28,13 @@ const meta: Meta<typeof InvButton> = {
export default meta;
type Story = StoryObj<typeof InvButton>;
const colorSchemes = ['base', 'invokeYellow', 'invokeRed', 'invokeGreen', 'invokeBlue'] as const;
const colorSchemes = [
'base',
'invokeYellow',
'invokeRed',
'invokeGreen',
'invokeBlue',
] as const;
const variants = ['solid', 'outline', 'ghost', 'link'] as const;
const sizes = ['xs', 'sm', 'md', 'lg'] as const;

View File

@ -22,7 +22,11 @@ export const InvButton = memo(
}
return (
<Button ref={ref} colorScheme={isChecked ? 'invokeBlue' : 'base'} {...rest}>
<Button
ref={ref}
colorScheme={isChecked ? 'invokeBlue' : 'base'}
{...rest}
>
{children}
</Button>
);