feature/IO-3357-Reynolds-DMS-API - Adjust useSplitTreatments to useTreatments

This commit is contained in:
Dave
2025-12-09 12:12:44 -05:00
parent 2408511cdc
commit b2b4ff7917
56 changed files with 112 additions and 112 deletions

View File

@@ -12,7 +12,7 @@ import { GET_UNACCEPTED_PARTS_DISPATCH } from "../../graphql/parts-dispatch.quer
import { selectTechnician } from "../../redux/tech/tech.selectors";
import { selectBodyshop } from "../../redux/user/user.selectors";
import { alphaSort } from "../../utils/sorters";
import { useSplitTreatments } from "@splitsoftware/splitio-react";
import { useTreatments } from "@splitsoftware/splitio-react";
const mapStateToProps = createStructuredSelector({
//currentUser: selectCurrentUser
@@ -27,7 +27,7 @@ export function TechDispatchedParts({ technician, bodyshop }) {
const {
treatments: { Enhanced_Payroll }
} = useSplitTreatments({
} = useTreatments({
attributes: {},
names: ["Enhanced_Payroll"],
splitKey: bodyshop.imexshopid