diff --git a/services/frontend/src/components/modals/docker-compose/volume/CreateVolumeModal.tsx b/services/frontend/src/components/modals/docker-compose/volume/CreateVolumeModal.tsx index 63669b9..d534dec 100644 --- a/services/frontend/src/components/modals/docker-compose/volume/CreateVolumeModal.tsx +++ b/services/frontend/src/components/modals/docker-compose/volume/CreateVolumeModal.tsx @@ -1,6 +1,5 @@ import { useCallback, useMemo, useState } from "react"; import { Formik } from "formik"; -import { XIcon } from "@heroicons/react/outline"; import { getFinalValues, @@ -14,6 +13,7 @@ import { classNames } from "../../../../utils/styles"; import { toaster } from "../../../../utils"; import { reportErrorsAndSubmit } from "../../../../utils/forms"; import { ScrollView } from "../../../ScrollView"; +import Modal from "../../../Modal"; interface ICreateVolumeModalProps { onHide: CallbackFunction; @@ -35,85 +35,60 @@ const CreateVolumeModal = (props: ICreateVolumeModalProps) => { const initialValues = useMemo(() => getInitialValues(), []); return ( -
-
-
-
-
-
-

Add top level volume

- + {tabs.map((tab) => ( + { + e.preventDefault(); + setOpenTab(tab.name); + }} + > + {tab.name} + + ))} +
- - {(formik) => ( - <> - - - - {openTab === "General" && } - + + {openTab === "General" && } + -
- -
- - )} -
-
-
-
-
+
+ +
+ + )} + + ); };