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

Refactor class components + Remove references to legacy nav extenension 'resource' property

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Foundation
    • 5
    • False
    • None
    • False
    • Remove class components and inheritance patterns from nav components.
    • HAC Infra - Sprint 221, HAC Infra - Sprint 222, HAC Infra - Sprint 223

      Refactor NavItemResourceNS and NavItemResourceCluster into a single NavItemResource component. The only difference between these components is how the URL is matched, which can be easily factored out.

      Refactor the NavItem, NavItemHref, and NavItemResource from class components with inheritance relationships to function components that are composable.
       
      Remove NavLinkRoot component and use hooks in NavItemHref and NavItemResource to accomplish the same behaviors.
       

      AC:

      • Refactor these components from class components into functional components
      • Get rid of inheritance 
         

              rh-ee-jonjacks Jon Jackson
              rh-ee-jonjacks Jon Jackson
              YaDan Pei YaDan Pei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: