Skip to content

Conversation

@jpuzz0
Copy link
Contributor

@jpuzz0 jpuzz0 commented Jan 14, 2022

What: Closes #6793

@jpuzz0 jpuzz0 force-pushed the chore/button-examples-to-ts branch from d04367a to 07fe9db Compare January 14, 2022 19:25
@patternfly-build
Copy link
Collaborator

patternfly-build commented Jan 14, 2022

isLoading={isPrimaryLoading}
variant="primary"
onClick={() => setIsPrimaryLoading(!isPrimaryLoading)}
{...(isPrimaryLoading && { spinnerAriaValueText: 'Loading' })}
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is causing a problem when I hit the ts>>js button...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mechanism used to convert between TS and JS seems to break when spreading props (at least for Button). Can you point me to where we do the conversion so I can take a look?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

Works great

issues with typescript -> javascript parsing will be resolved when this org PR merges. This PR does not need to be blocked.

@wise-king-sullyman wise-king-sullyman merged commit a2cbbea into patternfly:main Jan 19, 2022
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.30.4
  • @patternfly/react-catalog-view-extension@4.42.4
  • @patternfly/react-charts@6.44.4
  • @patternfly/react-code-editor@4.32.4
  • @patternfly/react-console@4.42.4
  • @patternfly/react-core@4.191.4
  • @patternfly/react-docs@5.52.4
  • @patternfly/react-icons@4.42.4
  • @patternfly/react-inline-edit-extension@4.36.4
  • demo-app-ts@4.151.4
  • @patternfly/react-integration@4.153.4
  • @patternfly/react-log-viewer@4.36.4
  • @patternfly/react-styles@4.41.4
  • @patternfly/react-table@4.60.4
  • @patternfly/react-tokens@4.43.4
  • @patternfly/react-topology@4.38.4
  • @patternfly/react-virtualized-extension@4.38.4
  • transformer-cjs-imports@4.29.4

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.

Button: Convert examples to typescript

4 participants