Skip to content

Commit

Permalink
Merge pull request #67 from Giveth/fix-ouline-button-typo
Browse files Browse the repository at this point in the history
fix: outline button typo
  • Loading branch information
alireza-sharifpour authored Sep 4, 2022
2 parents 30e542b + 893f579 commit 3bd522d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@giveth/ui-design-system",
"version": "1.8.21",
"version": "1.8.22",
"files": [
"/lib"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const ButtonContainer = styled.button<IButtonContainerProps>`
}
`;

export const OulineButton: FC<IButtonProps> = ({
export const OutlineButton: FC<IButtonProps> = ({
label,
size = 'medium',
buttonType = 'secondary',
Expand Down
4 changes: 2 additions & 2 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export * from './typography/headlines/H6';
export * from './typography/ButtonText';

export * from './buttons/Button';
export * from './buttons/OulineButton';
export * from './buttons/OutlineButton';
export * from './buttons/type';

export * from './buttonLinks/ButtonLink';
export * from './buttonLinks/OulineButtonLink';
export * from './buttonLinks/OutlineButtonLink';

export * from './layout/Container';
export * from './layout/ContainerFluid';
Expand Down
22 changes: 11 additions & 11 deletions src/stories/OutlineButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';

import { OulineButton } from '../components/buttons/OulineButton';
import { OutlineButton } from '../components/buttons/OutlineButton';

export default {
title: 'Example/Button',
component: OulineButton,
} as ComponentMeta<typeof OulineButton>;
component: OutlineButton,
} as ComponentMeta<typeof OutlineButton>;

const Template: ComponentStory<typeof OulineButton> = args => (
<OulineButton {...args}>{args.label}</OulineButton>
const Template: ComponentStory<typeof OutlineButton> = args => (
<OutlineButton {...args}>{args.label}</OutlineButton>
);

export const OulinePrimary = Template.bind({});
OulinePrimary.args = {
export const OutlinePrimary = Template.bind({});
OutlinePrimary.args = {
buttonType: 'primary',
label: 'Ouline Primary',
label: 'Outline Primary',
size: 'medium',
disabled: false,
loading: false,
};

export const OulineSecondary = Template.bind({});
OulineSecondary.args = {
export const OutlineSecondary = Template.bind({});
OutlineSecondary.args = {
buttonType: 'secondary',
label: 'Ouline Secondary',
label: 'Outline Secondary',
size: 'medium',
disabled: false,
loading: false,
Expand Down
14 changes: 7 additions & 7 deletions src/stories/OutlineButtonLink.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';

import { OutlineLinkButton } from '../components/buttonLinks/OulineButtonLink';
import { OutlineLinkButton } from '../components/buttonLinks/OutlineButtonLink';

export default {
title: 'Example/ButtonLink',
Expand All @@ -12,18 +12,18 @@ const Template: ComponentStory<typeof OutlineLinkButton> = args => (
<OutlineLinkButton {...args}>{args.label}</OutlineLinkButton>
);

export const OulinePrimary = Template.bind({});
OulinePrimary.args = {
export const OutlinePrimary = Template.bind({});
OutlinePrimary.args = {
buttonType: 'primary',
label: 'Ouline Primary',
label: 'Outline Primary',
size: 'medium',
disabled: false,
};

export const OulineSecondary = Template.bind({});
OulineSecondary.args = {
export const OutlineSecondary = Template.bind({});
OutlineSecondary.args = {
buttonType: 'secondary',
label: 'Ouline Secondary',
label: 'Outline Secondary',
size: 'medium',
disabled: false,
};

0 comments on commit 3bd522d

Please sign in to comment.