-
Story
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
None
One of the steps of the migration strategy is start using the v6 API for components that are passed to the `CompatRoute` component, based on the [migration strategy guide|https://github.com/remix-run/react-router/discussions/8753.]. This route now has both v5 and v6 routing contexts, so we can start migrating component code to v6.
If the component is a class component, you'll need to convert it to a function component first so that you can use hooks.
The StorageClassFormWithTranslation component in /frontend/public/components/storage-class-form.tsx needs to use the v6 useNavigate hook, which requires it to be converted from a class component to a functional component.
AC: StorageClassFormWithTranslation component in storage-class-form.tsx is rewritten from class component to functional component.
- incorporates
-
CONSOLE-3713 Rewrite frontend tests in storage-class-form.spec.tsx to accommodate functional components
- Closed
- links to