import { DeleteFilled } from "@ant-design/icons"; import { Button, Form, Input, InputNumber, Select, Space, Switch } from "antd"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { TemplateList } from "../../utils/TemplateConstants"; import ConfigFormTypes from "../config-form-components/config-form-types"; import FormListMoveArrows from "../form-list-move-arrows/form-list-move-arrows.component"; import ConfigListEmptyState from "../layout-form-row/config-list-empty-state.component.jsx"; import InlineValidatedFormRow from "../layout-form-row/inline-validated-form-row.component.jsx"; import LayoutFormRow from "../layout-form-row/layout-form-row.component"; import { INLINE_TITLE_GROUP_STYLE, INLINE_TITLE_HANDLE_STYLE, INLINE_TITLE_INPUT_STYLE, INLINE_TITLE_LABEL_STYLE, INLINE_TITLE_ROW_STYLE, INLINE_TITLE_SEPARATOR_STYLE, INLINE_TITLE_SWITCH_GROUP_STYLE, InlineTitleListIcon } from "../layout-form-row/inline-form-row-title.utils.js"; const SelectorDiv = styled.div` .ant-form-item .ant-select { width: 200px; } `; export default function ShopInfoIntakeChecklistComponent({ form }) { const { t } = useTranslation(); const TemplateListGenerated = TemplateList(); return (
({ value: TemplateListGenerated[i].key, label: TemplateListGenerated[i].title }))} /> {(fields, { add, remove, move }) => { return ( { add(); }} > {t("bodyshop.actions.add_intake_checklist_item")} ]} >
{fields.length === 0 ? ( ) : ( fields.map((field, index) => { return (
{t("jobs.fields.intake.name")}
{t("jobs.fields.intake.required")}
} wrapTitle extra={
); }}
{(fields, { add, remove, move }) => { return ( { add(); }} > {t("bodyshop.actions.add_delivery_checklist_item")} ]} >
{fields.length === 0 ? ( ) : ( fields.map((field, index) => { return (
{t("jobs.fields.intake.name")}
{t("jobs.fields.intake.required")}
} wrapTitle extra={
); }}
); }