-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
3
-
None
-
None
-
OCP Console - Sprint 276
As part of the work on react-router v5 drop, we need to migrate from the createModalLauncher to the useOverlay hook instead.
There are several createModalLauncher instances within TOPOLOGY plugin, these are listed in Inventory of createModalLauncher in Console. We should either refactor those to hook equivalent which would wrap and return the existing actions or move them under FC. Some prior refactors that have been done are a good reference point for what is expected - https://github.com/openshift/console/pull/13506, https://github.com/openshift/console/pull/15078 or https://github.com/openshift/console/pull/15063 .
AC:
- Refactor existing uses of createModalLauncher instances by migrating them to a hook pattern
- Consolidate consumers of the new refactored hook form.
- Check the tests. Some of the refactored code could be used in tests.