Skip to content

Conversation

@dominik-petrik
Copy link
Contributor

What: Closes #7707

@patternfly-build
Copy link
Collaborator

patternfly-build commented Jul 18, 2022

export const RadioControlled: React.FunctionComponent = () => {
const [check1, setCheck1] = React.useState(false);

function handleChange(_: boolean) {
Copy link
Contributor

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 = () => {...}

Copy link
Contributor Author

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

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect!

@wise-king-sullyman wise-king-sullyman merged commit 91051b9 into patternfly:main Jul 27, 2022
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.66.5
  • @patternfly/react-catalog-view-extension@4.78.5
  • @patternfly/react-charts@6.80.5
  • @patternfly/react-code-editor@4.68.5
  • @patternfly/react-console@4.78.5
  • @patternfly/react-core@4.227.5
  • @patternfly/react-docs@5.88.5
  • @patternfly/react-icons@4.78.5
  • @patternfly/react-inline-edit-extension@4.72.5
  • demo-app-ts@4.187.5
  • @patternfly/react-integration@4.189.5
  • @patternfly/react-log-viewer@4.72.5
  • @patternfly/react-styles@4.77.5
  • @patternfly/react-table@4.96.5
  • @patternfly/react-tokens@4.79.5
  • @patternfly/react-topology@4.74.5
  • @patternfly/react-virtualized-extension@4.74.5
  • transformer-cjs-imports@4.65.5

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Radio: convert examples to TypeScript

4 participants