From 03ff3e021874193156c4d9d54224f21e5307e61b Mon Sep 17 00:00:00 2001 From: Srinath Date: Fri, 20 Feb 2026 15:33:02 +0530 Subject: [PATCH] Added Qr scann on mobile Funtionalites --- .../UtillComponents/BSNavbarSearchStandard.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Pages/BookingScreen/Components/UtillComponents/BSNavbarSearchStandard.jsx b/src/Pages/BookingScreen/Components/UtillComponents/BSNavbarSearchStandard.jsx index 35671ac..d072b60 100644 --- a/src/Pages/BookingScreen/Components/UtillComponents/BSNavbarSearchStandard.jsx +++ b/src/Pages/BookingScreen/Components/UtillComponents/BSNavbarSearchStandard.jsx @@ -19,6 +19,8 @@ import Search from "../../../../Components/Forms/Search"; import VoiceToTextItemCard from "../../../VoiceToText/VoiceToTextItemCard"; import { ApplicationPreferences } from "../../../../Features/BrachLogin/BranchLogin"; import { useDateStore } from "../../../../Features/BookingScreen/BookingData/DateStore"; +import BarCodeScan from "../../../../Services/BarCodeScan"; +import { isMobile } from "react-device-detect"; const BSNavbarSearchStandard = ({ inputRef }) => { const dispatch = useDispatch(); @@ -147,6 +149,9 @@ const BSNavbarSearchStandard = ({ inputRef }) => { const handleSearch = (e) => { dispatch(changeSearchedData(e?.target?.value)); }; + const handleScan = (e) => { + dispatch(changeSearchedData(e)); + }; const HandleVoiceSearch = () => { setVoiceSearch(!voiceSearch); }; @@ -159,6 +164,13 @@ const BSNavbarSearchStandard = ({ inputRef }) => { ref={inputRef} value={ProdName} /> + {isMobile && screenWidth <= 768 && ( + { + handleScan(value); + }} + /> + )} ); };