Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-5034

Remove use of deprecated ReactComponent attributes in console

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In React 19, Component.defaultProps, Component.propTypes, and Component.contextTypes are removed. All 3 have already been deprecated in React 18. To reduce deprecation warnings we should remove them now.

      https://react.dev/blog/2024/04/25/react-19-upgrade-guide

      AC:

      Refactor the following to not use those attributes, which are deprecated in React 18 and removed in React 19. Rewrite these components to be TypeScript-based functional components (i.e., React.FC):

      • defaultProps
        • packages/operator-lifecycle-manager/src/components/operator-hub/operator-hub-item-details.tsx
        • public/components/events.jsx
        • public/components/utils/name-value-editor.jsx
        • public/components/utils/tile-view-page.jsx
      • propTypes
        • public/components/events.jsx
        • public/components/utils/firehose.jsx (done alongside firehose removal)
        • public/components/utils/name-value-editor.jsx
        • public/components/utils/tile-view-page.jsx
        • public/components/utils/value-from-pair.jsx
      • contextTypes
        • public/components/utils/firehose.jsx (done alongside firehose removal)

              Unassigned Unassigned
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: