Skip to content

Commit

Permalink
chore: types, remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
gndz07 committed Mar 8, 2024
1 parent f494a62 commit 671ff2b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions components/AccessibleIcon/AccessibleIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ export default {
title: 'Components/AccessibleIcon',
component: AccessibleIcon,
tags: ['autodocs'],
} as Meta<any>;
} as Meta<typeof AccessibleIcon>;

export const Basic: StoryFn<any> = (args) => (
export const Basic: StoryFn<typeof AccessibleIcon> = () => (
<Flex gap={3} align="center">
<IconButton>
<AccessibleIcon label="notification" {...args} size="1">
<AccessibleIcon label="notification">
<Icons.BellIcon />
</AccessibleIcon>
</IconButton>

<IconButton>
<AccessibleIcon label="user settings" {...args} size="2">
<AccessibleIcon label="user settings">
<Icons.AvatarIcon />
</AccessibleIcon>
</IconButton>
Expand Down
2 changes: 1 addition & 1 deletion components/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Avatar } from './Avatar';
export default {
title: 'Components/Avatar',
component: Avatar,
} as Meta<any>;
} as Meta<typeof Avatar>;

export const Template: StoryFn<typeof Avatar> = (args) => <Avatar {...args} />;

Expand Down
4 changes: 2 additions & 2 deletions components/ButtonSwitch/ButtonSwitch.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
component: ButtonSwitchContainer,
} as Meta<typeof ButtonSwitchContainer>;

export const Basic: StoryFn<any> = (args) => {
export const Basic: StoryFn<typeof ButtonSwitchContainer> = () => {
const [value, setValue] = useState('left');

return (
Expand All @@ -19,7 +19,7 @@ export const Basic: StoryFn<any> = (args) => {
);
};

export const Multiple: StoryFn<any> = (args) => {
export const Multiple: StoryFn<typeof ButtonSwitchContainer> = () => {
const [value, setValue] = useState<string[]>([]);

return (
Expand Down
6 changes: 3 additions & 3 deletions components/Dialog/Dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Content: React.FC = () => {
);
};

export const Basic: StoryFn<any> = (args) => {
export const Basic: StoryFn<typeof Dialog> = () => {
const [open, setOpen] = useState(false);

return (
Expand Down Expand Up @@ -76,7 +76,7 @@ export const Basic: StoryFn<any> = (args) => {
);
};

const Customize: StoryFn<any> = (args) => {
const Customize: StoryFn<typeof Dialog> = () => {
const [open, setOpen] = useState(false);

return (
Expand Down Expand Up @@ -108,7 +108,7 @@ const Customize: StoryFn<any> = (args) => {
);
};

export const NoCloseIcon: StoryFn<any> = (args) => {
export const NoCloseIcon: StoryFn<typeof Dialog> = () => {
const [open, setOpen] = useState(false);

return (
Expand Down
8 changes: 4 additions & 4 deletions components/IconButton/IconButton.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Flex } from '../Flex';
export default {
title: 'Components/IconButton',
component: IconButton,
} as Meta<any>;
} as Meta<typeof IconButton>;

export const Sizes: StoryFn<any> = (args) => (
export const Sizes: StoryFn<typeof IconButton> = (args) => (
<Flex gap={3} align="center">
<IconButton {...args} size="1">
<Icons.BellIcon />
Expand Down Expand Up @@ -37,7 +37,7 @@ Sizes.argTypes = {
},
};

export const Variants: StoryFn<any> = (args) => (
export const Variants: StoryFn<typeof IconButton> = (args) => (
<Flex gap={3} align="center">
<IconButton {...args} variant="default">
<Icons.BellIcon />
Expand Down Expand Up @@ -71,6 +71,6 @@ Variants.argTypes = {
},
};

const Customize: StoryFn<any> = (args) => (
const Customize: StoryFn<typeof IconButton> = (args) => (
<IconButton css={{ c: '$hiContrast' }} {...args} size="1"></IconButton>
);
2 changes: 1 addition & 1 deletion components/Tabs/Tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
component: TabsContainer,
} as Meta<typeof TabsContainer>;

export const Basic: StoryFn<any> = (args) => {
export const Basic: StoryFn<typeof TabsContainer> = (args) => {
return (
<TabsContainer defaultValue="tab1">
<TabsList aria-label="Tabs Group">
Expand Down

0 comments on commit 671ff2b

Please sign in to comment.