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

@@ -1,4 +1,4 @@
import { useSplitTreatments } from "@splitsoftware/splitio-react";
import { useTreatments } from "@splitsoftware/splitio-react";
import { Button, Card, Col, Row, Space, Tooltip, Typography } from "antd";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
@@ -24,7 +24,7 @@ export function PrintCenterJobsPartsComponent({ printCenterModal, bodyshop, tech
const notification = useNotification();
const {
treatments: { Enhanced_Payroll }
} = useSplitTreatments({
} = useTreatments({
attributes: {},
names: ["Enhanced_Payroll"],
splitKey: bodyshop.imexshopid

View File

@@ -1,4 +1,4 @@
import { useSplitTreatments } from "@splitsoftware/splitio-react";
import { useTreatments } from "@splitsoftware/splitio-react";
import { Card, Col, Input, Row, Space, Typography } from "antd";
import _ from "lodash";
import { useState } from "react";
@@ -27,7 +27,7 @@ export function PrintCenterJobsComponent({ printCenterModal, bodyshop }) {
const { t } = useTranslation();
const {
treatments: { Enhanced_Payroll }
} = useSplitTreatments({
} = useTreatments({
attributes: {},
names: ["Enhanced_Payroll"],
splitKey: bodyshop.imexshopid