Reformat all project files to use the prettier config file.
This commit is contained in:
@@ -1,55 +1,42 @@
|
||||
import {Form, Select} from "antd";
|
||||
import { Form, Select } 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";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
bodyshop: selectBodyshop,
|
||||
//currentUser: selectCurrentUser
|
||||
bodyshop: selectBodyshop
|
||||
});
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||
});
|
||||
|
||||
export function TimeTicketShiftFormComponent({bodyshop, form}) {
|
||||
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 function TimeTicketShiftFormComponent({ bodyshop, form }) {
|
||||
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);
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(TimeTicketShiftFormComponent);
|
||||
|
||||
Reference in New Issue
Block a user