mirror of https://github.com/ctk-hq/ctk
fix: service modal yup, breakout component, cleanup
parent
de75971fb0
commit
5a35535eae
@ -1,6 +1,5 @@
|
|||||||
const Environment = (props: any) => {
|
const Environment = () => {
|
||||||
const { formik } = props;
|
|
||||||
|
|
||||||
return <></>;
|
return <></>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Environment;
|
export default Environment;
|
||||||
|
|||||||
@ -1,56 +1,12 @@
|
|||||||
const General = (props: any) => {
|
import TextField from "../../global/FormElements/InputField";
|
||||||
const { formik } = props;
|
|
||||||
|
|
||||||
|
const General = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="relative pb-3 flex-auto">
|
<TextField label="Service name" name="canvasConfig.service_name" />
|
||||||
<div className="grid grid-cols-6 gap-4">
|
<TextField label="Container name" name="serviceConfig.container_name" />
|
||||||
<div className="col-span-3">
|
|
||||||
<label
|
|
||||||
htmlFor="service_name"
|
|
||||||
className="block text-xs font-medium text-gray-700"
|
|
||||||
>
|
|
||||||
Service name
|
|
||||||
</label>
|
|
||||||
<div className="mt-1">
|
|
||||||
<input
|
|
||||||
id="service_name"
|
|
||||||
name="canvasConfig.service_name"
|
|
||||||
type="text"
|
|
||||||
autoComplete="none"
|
|
||||||
className="input-util"
|
|
||||||
onChange={formik.handleChange}
|
|
||||||
value={formik.values.canvasConfig.service_name}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="relative pb-3 flex-auto">
|
|
||||||
<div className="grid grid-cols-6 gap-4">
|
|
||||||
<div className="col-span-3">
|
|
||||||
<label
|
|
||||||
htmlFor="container_name"
|
|
||||||
className="block text-xs font-medium text-gray-700"
|
|
||||||
>
|
|
||||||
Container name
|
|
||||||
</label>
|
|
||||||
<div className="mt-1">
|
|
||||||
<input
|
|
||||||
id="container_name"
|
|
||||||
name="serviceConfig.container_name"
|
|
||||||
type="text"
|
|
||||||
autoComplete="none"
|
|
||||||
className="input-util"
|
|
||||||
onChange={formik.handleChange}
|
|
||||||
value={formik.values.serviceConfig.container_name}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default General;
|
export default General;
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
const Labels = (props: any) => {
|
const Labels = () => {
|
||||||
const { formik } = props;
|
|
||||||
|
|
||||||
return <></>;
|
return <></>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Labels;
|
export default Labels;
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
const Volumes = (props: any) => {
|
const Volumes = () => {
|
||||||
const { formik } = props;
|
|
||||||
|
|
||||||
return <></>;
|
return <></>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Volumes;
|
export default Volumes;
|
||||||
|
|||||||
Loading…
Reference in New Issue