Files
bodyshop/client/src/components/time-ticket-shift-form/time-ticket-shift-form.component.jsx
2025-08-19 16:23:29 -04:00

36 lines
1.3 KiB
JavaScript

import { Form, Select } from "antd";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
const mapStateToProps = createStructuredSelector({});
const mapDispatchToProps = () => ({});
export function TimeTicketShiftFormComponent() {
const { t } = useTranslation();
return (
<div>
<Form.Item
name="memo"
label={t("timetickets.fields.memo")}
rules={[
{
required: true
//message: t("general.validation.required"),
}
]}
>
<Select>
<Select.Option value="timetickets.labels.amshift">{t("timetickets.labels.amshift")}</Select.Option>
<Select.Option value="timetickets.labels.ambreak">{t("timetickets.labels.ambreak")}</Select.Option>
<Select.Option value="timetickets.labels.lunch">{t("timetickets.labels.lunch")}</Select.Option>
<Select.Option value="timetickets.labels.pmshift">{t("timetickets.labels.pmshift")}</Select.Option>
<Select.Option value="timetickets.labels.pmbreak">{t("timetickets.labels.pmbreak")}</Select.Option>
</Select>
</Form.Item>
</div>
);
}
export default connect(mapStateToProps, mapDispatchToProps)(TimeTicketShiftFormComponent);