diff --git a/src/Components/Menu/PozoMenu.jsx b/src/Components/Menu/PozoMenu.jsx index 8f3bd31..408573a 100644 --- a/src/Components/Menu/PozoMenu.jsx +++ b/src/Components/Menu/PozoMenu.jsx @@ -306,14 +306,6 @@ const PozoMenu = ({ setOpenKeys([]); setDropdownPositions({}); - // Fullscreen on Sales Entry click - - if (item.label === 'Sales Entry') { - if (!document.fullscreenElement) { - document.documentElement.requestFullscreen().catch(() => {}); - } - } - // Trigger onClick callback if provided if (onClick) { onClick({ diff --git a/src/Pages/BookingScreen/Components/UtillComponents/BSNavBarComboSearch.jsx b/src/Pages/BookingScreen/Components/UtillComponents/BSNavBarComboSearch.jsx index 507f21b..875a28f 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/BSNavBarComboSearch.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/BSNavBarComboSearch.jsx @@ -1,4 +1,3 @@ -import '../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss'; import { useRef, useState, useEffect, useCallback } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { IoSearchOutline } from 'react-icons/io5'; @@ -33,9 +32,9 @@ import { isMobile } from 'react-device-detect'; import { BiBarcodeReader } from 'react-icons/bi'; import TooltipWrapper from '../../../../Components/Tooltip/Tooltip'; import BarCodeScan from '../../../../Services/BarCodeScan.jsx'; +import '../../../../Styles/BookingScreen/Components/UtillComponents/BSNavBarComponents.scss'; const BSNavBarComboSearch = (props) => { - const dispatch = useDispatch(); const propsData = props?.SessionData; const [form] = Form.useForm(); @@ -1185,11 +1184,6 @@ const BSNavBarComboSearch = (props) => { await onChangeprodFunction(value); } - // setOptions(() => { - // if (!value || value.includes('@')) { - // return []; - // } - return DropDown && Array.isArray(DropDown) ? DropDown.map((item) => ({ label: `${item.ComboName}`, // Display the combo name @@ -1198,28 +1192,7 @@ const BSNavBarComboSearch = (props) => { : []; // }); }; - // const stopScannerFromParent = () => { - // if (scannerRef.current) { - // scannerRef.current.stopScanner(); // Call stopScanner from the child component - // } - // }; - // const handleQrcode = () => { - // setOpenScanner((prev) => !prev); - // if (!openScanner && scannerRef.current) { - // scannerRef.current.reinitializeCamera(); // Call the function to reinitialize the camera - // } - // }; - - // const handleQrData = (decodedText, err) => { - // onChangeprodFunction(decodedText); - // setOpenScanner(false); // Close the modal after scanning - // stopScannerFromParent(); - // if (err && err?.error) { - // setMessageData(err?.error); - // setMessageType('error'); - // } - // }; return (