Skip to content

Commit

Permalink
fix: Merge pull request #31 from fayez-baig/develop
Browse files Browse the repository at this point in the history
fix: radio component bug fixed
  • Loading branch information
fayez-baig committed Oct 10, 2020
2 parents ba1a72b + 0dc7533 commit f907343
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/components/Form/Radio/Radio.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ import { RadioProps } from './types';

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

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

disabled: {
control: {
type: 'boolean'
Expand All @@ -35,6 +40,5 @@ const defaultRadioTemplate: Story<RadioProps> = args => (
export const Default = defaultRadioTemplate.bind({});

Default.args = {
disabled: false,
name: 'gender'
disabled: false
};
3 changes: 1 addition & 2 deletions src/components/Form/Radio/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ export interface RadioProps {

export const defaultProps: RadioProps = {
children: 'Check Me',
disabled: false,
name: 'radio'
disabled: false
};

0 comments on commit f907343

Please sign in to comment.