43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
import { Form, Input, Radio } from "antd";
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import { connect } from "react-redux";
|
|
import { createStructuredSelector } from "reselect";
|
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
|
|
|
const mapStateToProps = createStructuredSelector({
|
|
bodyshop: selectBodyshop,
|
|
});
|
|
|
|
export default connect(mapStateToProps, null)(PartsReceiveModalComponent);
|
|
|
|
export function PartsReceiveModalComponent({ bodyshop, form }) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<div>
|
|
<Form.Item
|
|
name="table"
|
|
rules={[
|
|
{
|
|
required: true,
|
|
//message: t("general.validation.required"),
|
|
},
|
|
]}
|
|
>
|
|
<Input.TextArea rows={8} />
|
|
</Form.Item>
|
|
<Form.Item
|
|
label={t("general.labels.sendby")}
|
|
name="sendby"
|
|
initialValue="print"
|
|
>
|
|
<Radio.Group>
|
|
<Radio value="email">{t("general.labels.email")}</Radio>
|
|
<Radio value="print">{t("general.labels.print")}</Radio>
|
|
</Radio.Group>
|
|
</Form.Item>
|
|
</div>
|
|
);
|
|
}
|