Skip to content

Commit

Permalink
fix: fixed bugs in component
Browse files Browse the repository at this point in the history
  • Loading branch information
fayez-baig committed Oct 10, 2020
1 parent 0e62099 commit cfe2149
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
11 changes: 0 additions & 11 deletions src/components/Elements/Box/Box.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ import { getStyles } from '../../styles/getStyles';
import Text from './../Text/Text';

export default {
argTypes: {
children: {
control: {
type: 'text'
}
}
},
component: Box,
title: 'Elements/Box'
};
Expand Down Expand Up @@ -48,7 +41,3 @@ const defaultBoxTemplate: Story<BoxProps> = args => (
);

export const Default = defaultBoxTemplate.bind({});

Default.args = {
children: 'Check Me'
};
2 changes: 1 addition & 1 deletion src/components/Elements/Image/Image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Image: React.FC<ImageProps> = ({
return (
<figure className={classes}>
<img
className={isRounded ? 'is-rounded' : ''}
className={isRounded ? getStyles(['is-rounded']) : ''}
alt={alt}
{...otherImageProps}
/>
Expand Down
7 changes: 6 additions & 1 deletion src/components/Form/CheckBox/CheckBox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ import { CheckBoxProps } from './types';

export default {
argTypes: {
checked: {
control: {
type: 'boolean'
}
},

children: {
control: {
type: 'text'
}
},

disabled: {
control: {
type: 'boolean'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/CheckBox/CheckBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CheckBox: React.FC<CheckBoxProps> = ({
disabled={disabled}
name={name}
{...otherCheckBoxProps}
/>
/>{' '}
{children}
</label>
);
Expand Down
5 changes: 5 additions & 0 deletions src/components/Form/Input/Input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export default {
type: 'text'
}
},
placeholder: {
control: {
type: 'text'
}
},
readOnly: {
control: {
type: 'boolean'
Expand Down

0 comments on commit cfe2149

Please sign in to comment.