Skip to content

Commit

Permalink
fix: fixed inconsistent control type for 'radio' (storybookjs#309)
Browse files Browse the repository at this point in the history
changed 'radios' to 'radio'
  • Loading branch information
Karthik-B-06 authored and Daniel committed Feb 7, 2022
1 parent 8d2b29a commit 8d3ca5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/ondevice-controls/src/PropField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type ControlTypes =
| 'array'
| 'date'
| 'button'
| 'radios';
| 'radio';

export interface Knob {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion addons/ondevice-controls/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export default {
select: SelectType,
date: DateType,
array: ArrayType,
radios: RadioType,
radio: RadioType,
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const RadioMeta: ComponentMeta<typeof Radio> = {
argTypes: {
selection: {
options: radio_stations,
control: { type: 'radios' },
control: { type: 'radio' },
},
},
};
Expand Down

0 comments on commit 8d3ca5d

Please sign in to comment.