Added email constants template + fixed email settings for parts order modal

This commit is contained in:
Patrick Fic
2020-04-06 11:01:07 -07:00
parent fe002b0dff
commit 019fd90170
3 changed files with 39 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
import { DeleteFilled } from "@ant-design/icons";
import { DatePicker, Form, Input } from "antd";
import { DatePicker, Form, Input, Radio } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import VendorSearchSelect from "../vendor-search-select/vendor-search-select.component";
@@ -93,14 +93,13 @@ export default function PartsOrderModalComponent({
);
}}
</Form.List>
<Radio.Group
defaultValue={sendType}
onChange={e => setSendType(e.target.value)}
>
<Radio value={"e"}>{t("parts_orders.labels.email")}</Radio>
<Radio value={"p"}>{t("parts_orders.labels.print")}</Radio>
</Radio.Group>
</div>
);
}
// <Radio.Group
// defaultValue={sendType}
// onChange={e => setSendType(e.target.value)}
// >
// <Radio value={"e"}>{t("parts_orders.labels.email")}</Radio>
// <Radio value={"p"}>{t("parts_orders.labels.print")}</Radio>
// </Radio.Group>