31 lines
809 B
JavaScript
31 lines
809 B
JavaScript
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
import { createStructuredSelector } from "reselect";
|
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
|
import { useTranslation } from "react-i18next";
|
|
import { Button, Dropdown } from "antd";
|
|
|
|
const mapStateToProps = createStructuredSelector({
|
|
bodyshop: selectBodyshop,
|
|
});
|
|
const mapDispatchToProps = (dispatch) => ({
|
|
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
|
});
|
|
export default connect(
|
|
mapStateToProps,
|
|
mapDispatchToProps
|
|
)(TimeTicketTaskCollector);
|
|
|
|
export function TimeTicketTaskCollector({ form, bodyshop }) {
|
|
const { t } = useTranslation();
|
|
|
|
const items = [];
|
|
|
|
return (
|
|
<Dropdown menu={{ items }}>
|
|
<Button>{t("timetickets.actions.tasks")}</Button>
|
|
</Dropdown>
|
|
);
|
|
}
|