Update split functionality for Production List Colors.
This commit is contained in:
@@ -42,6 +42,7 @@ export function ProductionListTable({
|
|||||||
const [searchText, setSearchText] = useState("");
|
const [searchText, setSearchText] = useState("");
|
||||||
const { Production_List_Status_Colors } = useTreatments([
|
const { Production_List_Status_Colors } = useTreatments([
|
||||||
"Production_List_Status_Colors",
|
"Production_List_Status_Colors",
|
||||||
|
bodyshop.imexshopid,
|
||||||
]);
|
]);
|
||||||
const assoc = bodyshop.associations.find(
|
const assoc = bodyshop.associations.find(
|
||||||
(a) => a.useremail === currentUser.email
|
(a) => a.useremail === currentUser.email
|
||||||
|
|||||||
@@ -7,16 +7,31 @@ import { useTranslation } from "react-i18next";
|
|||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
||||||
|
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
|
const mapStateToProps = createStructuredSelector({
|
||||||
|
bodyshop: selectBodyshop,
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
|
//setUserLanguage: language => dispatch(setUserLanguage(language))
|
||||||
|
});
|
||||||
|
export default connect(
|
||||||
|
mapStateToProps,
|
||||||
|
mapDispatchToProps
|
||||||
|
)(ShopInfoROStatusComponent);
|
||||||
|
|
||||||
const SelectorDiv = styled.div`
|
const SelectorDiv = styled.div`
|
||||||
.ant-form-item .ant-select {
|
.ant-form-item .ant-select {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
export function ShopInfoROStatusComponent({ bodyshop, form }) {
|
||||||
export default function ShopInfoROStatusComponent({ form }) {
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { Production_List_Status_Colors } = useTreatments([
|
const { Production_List_Status_Colors } = useTreatments([
|
||||||
"Production_List_Status_Colors",
|
"Production_List_Status_Colors",
|
||||||
|
bodyshop.imexshopid,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const [options, setOptions] = useState(
|
const [options, setOptions] = useState(
|
||||||
|
|||||||
Reference in New Issue
Block a user