Skip to content

Commit

Permalink
udpate story to use integer values
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Dec 28, 2020
1 parent 502bd52 commit 144ea7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/components/src/radio-group/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const disabled = () => {
};

const ControlledRadioGroupWithState = () => {
const [ checked, setChecked ] = useState( 'option2' );
const [ checked, setChecked ] = useState( 1 );

/* eslint-disable no-restricted-syntax */
return (
Expand All @@ -58,9 +58,9 @@ const ControlledRadioGroupWithState = () => {
checked={ checked }
onChange={ setChecked }
>
<Radio value="option1">Option 1</Radio>
<Radio value="option2">Option 2</Radio>
<Radio value="option3">Option 3</Radio>
<Radio value={ 0 }>Option 1</Radio>
<Radio value={ 1 }>Option 2</Radio>
<Radio value={ 2 }>Option 3</Radio>
</RadioGroup>
);
/* eslint-enable no-restricted-syntax */
Expand Down

0 comments on commit 144ea7b

Please sign in to comment.