-
Notifications
You must be signed in to change notification settings - Fork 377
chore(Radio): convert examples to TypeScript #7708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
A11y report: https://patternfly-react-pr-7708-a11y.surge.sh |
| export const RadioControlled: React.FunctionComponent = () => { | ||
| const [check1, setCheck1] = React.useState(false); | ||
|
|
||
| function handleChange(_: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't even think this needs the optional checked param. And I think usually we write our helper functions in the following functional format:
const handleChange = () => {...}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed by the new commit
wise-king-sullyman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect!
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #7707