diff --git a/client/src/components/production-list-table/production-list-table.component.jsx b/client/src/components/production-list-table/production-list-table.component.jsx index 4ba5355a9..aacf756ca 100644 --- a/client/src/components/production-list-table/production-list-table.component.jsx +++ b/client/src/components/production-list-table/production-list-table.component.jsx @@ -42,6 +42,7 @@ export function ProductionListTable({ const [searchText, setSearchText] = useState(""); const { Production_List_Status_Colors } = useTreatments([ "Production_List_Status_Colors", + bodyshop.imexshopid, ]); const assoc = bodyshop.associations.find( (a) => a.useremail === currentUser.email diff --git a/client/src/components/shop-info/shop-info.rostatus.component.jsx b/client/src/components/shop-info/shop-info.rostatus.component.jsx index 868cbd141..6b360fbba 100644 --- a/client/src/components/shop-info/shop-info.rostatus.component.jsx +++ b/client/src/components/shop-info/shop-info.rostatus.component.jsx @@ -7,16 +7,31 @@ import { useTranslation } from "react-i18next"; import styled from "styled-components"; 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` .ant-form-item .ant-select { width: 200px; } `; - -export default function ShopInfoROStatusComponent({ form }) { +export function ShopInfoROStatusComponent({ bodyshop, form }) { const { t } = useTranslation(); const { Production_List_Status_Colors } = useTreatments([ "Production_List_Status_Colors", + bodyshop.imexshopid, ]); const [options, setOptions] = useState(