Reviewed-on: Pozomind/pozo-retail-app#72
This commit is contained in:
commit
e8c88723c1
|
|
@ -213,6 +213,7 @@ import pozologoimg from '../../../../../Images/pozologoimg.png';
|
|||
import PaymentGatewayEmbedded from '../../UtillComponents/PaymentGatewayEmbedded.jsx';
|
||||
import MobileMultiPdfPrintTrigger from '../../UtillComponents/MobileMultiPdfPrintTrigger.jsx';
|
||||
import { useDateStore } from '../../../../../Features/BookingScreen/BookingData/DateStore.js';
|
||||
import CustomerOrders from '../../BookingFunctionality/CustomerOrders.jsx';
|
||||
|
||||
const subDirectory = import.meta.env.ENV_BASE_URL;
|
||||
const MainHomeUrl = import.meta.env.ENV_MAIN_BASE_URL;
|
||||
|
|
|
|||
|
|
@ -211,6 +211,7 @@ import UpiPopover from '../StandardTable/Utils/UpiPopOver.jsx';
|
|||
import PaymentGatewayEmbedded from '../../UtillComponents/PaymentGatewayEmbedded.jsx';
|
||||
import MobileMultiPdfPrintTrigger from '../../UtillComponents/MobileMultiPdfPrintTrigger.jsx';
|
||||
import { useDateStore } from '../../../../../Features/BookingScreen/BookingData/DateStore.js';
|
||||
import CustomerOrders from '../../BookingFunctionality/CustomerOrders.jsx';
|
||||
|
||||
const subDirectory = import.meta.env.ENV_BASE_URL;
|
||||
const MainHomeUrl = import.meta.env.ENV_MAIN_BASE_URL;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import { DropDowns } from "../../../../Components/Forms/DropDown";
|
|||
import { Switch } from "antd";
|
||||
import { useSelector } from "react-redux";
|
||||
import KioskPrinterSelection from "./KioskPrinterSelection";
|
||||
import { GlobalFeatAddOnData } from "../../../../Features/BookingScreen/BookingData/BookingData";
|
||||
|
||||
const PrinterSelection = (props) => {
|
||||
const CompId = getSession("CompId");
|
||||
|
|
@ -28,6 +29,7 @@ const PrinterSelection = (props) => {
|
|||
const [activePrinterId, setActivePrinterId] = useState(null);
|
||||
const [initialPrinters, setInitialPrinters] = useState([]);
|
||||
const PrinterDetails = useSelector(GlobalPrinterMappingDtls);
|
||||
const FeatureAddonData = useSelector(GlobalFeatAddOnData);
|
||||
const [MyPrinter, setMyPrinter] = useState(true);
|
||||
const [MyKioskPrinter, setMyKioskPrinter] = useState(false);
|
||||
const { onClose } = props;
|
||||
|
|
@ -314,6 +316,10 @@ const PrinterSelection = (props) => {
|
|||
{/* <HiOutlineSquares2X2 size={16} /> */}
|
||||
My Printer
|
||||
</div>
|
||||
{FeatureAddonData?.FeatureDtls?.find(
|
||||
(item) =>
|
||||
item?.FeatureAddonName?.toLowerCase() === 'kiosk sales'
|
||||
) &&
|
||||
<div
|
||||
className={MyKioskPrinter ? 'selected' : ''}
|
||||
onClick={openKioskPrinter}
|
||||
|
|
@ -321,6 +327,7 @@ const PrinterSelection = (props) => {
|
|||
{/* <HiSquaresPlus size={16} /> */}
|
||||
Kiosk Printer
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue