feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration - Update useTreatments with useTreatmentsWithConfig

This commit is contained in:
Dave
2025-12-15 19:17:28 -05:00
parent 007bfef791
commit d8815e3e08
56 changed files with 112 additions and 112 deletions

View File

@@ -1,4 +1,4 @@
import { useTreatments } from "@splitsoftware/splitio-react";
import { useTreatmentsWithConfig } from "@splitsoftware/splitio-react";
import { Form, Input, InputNumber, Modal, Select, Switch } from "antd";
import { useEffect } from "react";
import { useTranslation } from "react-i18next";
@@ -28,7 +28,7 @@ export function JobLinesUpsertModalComponent({ bodyshop, open, jobLine, handleCa
const {
treatments: { Allow_Negative_Jobline_Price, Autohouse_Detail_line }
} = useTreatments({
} = useTreatmentsWithConfig({
attributes: {},
names: ["Allow_Negative_Jobline_Price", "Autohouse_Detail_line"],
splitKey: bodyshop.imexshopid

View File

@@ -1,5 +1,5 @@
import { useMutation } from "@apollo/client";
import { useTreatments } from "@splitsoftware/splitio-react";
import { useTreatmentsWithConfig } from "@splitsoftware/splitio-react";
import Axios from "axios";
import Dinero from "dinero.js";
import { useState } from "react";
@@ -26,7 +26,7 @@ const mapDispatchToProps = (dispatch) => ({
function JobLinesUpsertModalContainer({ jobLineEditModal, toggleModalVisible, bodyshop }) {
const {
treatments: { CriticalPartsScanning }
} = useTreatments({
} = useTreatmentsWithConfig({
attributes: {},
names: ["CriticalPartsScanning"],
splitKey: bodyshop.imexshopid