diff --git a/services/frontend/src/components/modals/docker-compose/service/Create.tsx b/services/frontend/src/components/modals/docker-compose/service/Create.tsx index 1e64070..97d1355 100644 --- a/services/frontend/src/components/modals/docker-compose/service/Create.tsx +++ b/services/frontend/src/components/modals/docker-compose/service/Create.tsx @@ -14,10 +14,12 @@ import Build from "./Build"; import { styled } from "@mui/joy"; import Environment from "./Environment"; import Deploy from "./Deploy"; -import { classNames } from "../../../../utils/styles"; import { toaster } from "../../../../utils"; import { reportErrorsAndSubmit } from "../../../../utils/forms"; import { ScrollView } from "../../../ScrollView"; +import Modal from "../../../Modal"; +import Tabs from "../../../Tabs"; +import Tab from "../../../Tab"; interface IModalServiceProps { onHide: CallbackFunction; @@ -51,91 +53,47 @@ const ModalServiceCreate = (props: IModalServiceProps) => { const initialValues = useMemo(() => getInitialValues(), []); return ( -
-
-
-
-
-
-

Add service

+ + + {(formik) => ( + +
+ + {tabs.map((tab) => ( + + ))} + + + + {openTab === "General" && } + {openTab === "Environment" && } + {openTab === "Data" && } + {openTab === "Build" && } + {openTab === "Deploy" && } + +
+ +
- - - {(formik) => ( - -
- - - - {openTab === "General" && } - {openTab === "Environment" && } - {openTab === "Data" && } - {openTab === "Build" && } - {openTab === "Deploy" && } - -
- -
- -
-
- )} -
-
-
-
-
+ + )} + + ); };