Skip to content

Commit

Permalink
Rename LeadingButton to IconButton
Browse files Browse the repository at this point in the history
  • Loading branch information
exoup committed Feb 21, 2024
1 parent 328dccd commit bd148c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Button/Button.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ArrowUpIcon, CheckIcon } from '@heroicons/react/24/outline'

export default {
args: {
children: 'Default',
children: 'Button',
disabled: false,
loading: false,
},
Expand Down Expand Up @@ -62,9 +62,9 @@ PillButtonDefault.args = {
};
PillButtonDefault.storyName = 'Pill Button';

export const LeadingButtonDefault = ({ children, loading, loadingClass, ...args }) => {
export const IconButtonDefault = ({ children, loading, loadingClass, ...args }) => {
return (
<LeadingButton {...args}>
<IconButton {...args}>
{
<Icon loading={loading} loadingClass={loadingClass} icons={[
{ name: "CheckIcon", element: <CheckIcon /> },
Expand All @@ -73,10 +73,10 @@ export const LeadingButtonDefault = ({ children, loading, loadingClass, ...args
<Follower>
{children}
</Follower>
</LeadingButton>
</IconButton>
)
};
LeadingButtonDefault.storyName = 'Leading Button';
IconButtonDefault.storyName = 'Icon Button';

export const ShapeButtonDefault = ({ loading, loadingClass, ...args }) => {
return (
Expand Down

0 comments on commit bd148c1

Please sign in to comment.