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

Refactor VolumesTable to use RemoveVolumeModal launched via useOverlay

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 275

      As part of the work on react-router v5 drop, we need to migrate from the createModalLauncher instances in our codebase and we need to use the useModal hook instead.

      One instance that uses createModalLauncher is VolumeTableRows and its removeVolume action. Introduce a new hook that would return callback to launch the modal via the useOverlay hook. We should adjust this function to accept a callback retrieved from this new hook.

      AC:

      1. refactor removeVolume to hook form.
      2. consolidate the consumers of removeVolume action to use this new hook form instead.

              rh-ee-mziska Marek Ziska (Inactive)
              rh-ee-mziska Marek Ziska (Inactive)
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: