Files
bodyshop/client/src/components/shop-csi-config-form/shop-csi-config-form.component.jsx
Allan Carr 830d2c87d2 IO-2626 CSI Pages
Move to Server side initial commit
2024-02-02 11:55:57 -08:00

24 lines
603 B
JavaScript

import { Form } from "antd";
import React from "react";
import ConfigFormComponents from "../config-form-components/config-form-components.component";
export default function ShopCsiConfigForm({ selectedCsi }) {
const readOnly = !!selectedCsi;
const [form] = Form.useForm();
const handleFinish = (values) => {};
return (
<div>
{readOnly}
{selectedCsi && (
<Form form={form} onFinish={handleFinish}>
<ConfigFormComponents
readOnly={selectedCsi}
componentList={selectedCsi.config}
/>
</Form>
)}
</div>
);
}