Added Qr scann on mobile Funtionalites

This commit is contained in:
Srinath 2026-02-20 15:33:38 +05:30
parent c6fdfe5842
commit 6361cb661e
1 changed files with 12 additions and 6 deletions

View File

@ -81,6 +81,7 @@ import { Global_PromoCodeOffers } from '../../../../Features/Offer/Offer.js';
import { validateOffers } from '../BSItemCards/ValidateOffer.jsx';
import { useSaleswiseOfferWatcher } from '../BSItemCards/SalesWiseOffer.jsx';
import ExpireConfirmModal from '../BookingFunctionality/ExpireConfirmModal.jsx';
import BarCodeScan from '../../../../Services/BarCodeScan.jsx';
export default function BSC1Search(props) {
const dispatch = useDispatch();
@ -4567,10 +4568,15 @@ export default function BSC1Search(props) {
</Form.Item>
</Form>
{isMobile && screenWidth <= 768 && (
<BiBarcodeReader
className="BSC1Search-barcodeicon"
onClick={() => handleQrcode()}
// onClick={() => OnfocusTrue()}
// <BiBarcodeReader
// className="BSC1Search-barcodeicon"
// onClick={() => handleQrcode()}
// // onClick={() => OnfocusTrue()}
// />
<BarCodeScan
onScan={(value) => {
ProductNameOnChange(value, true);
}}
/>
)}
@ -4821,7 +4827,7 @@ export default function BSC1Search(props) {
</div>
</div>
</DefaultModal>
{isMobile && screenWidth <= 768 && (
{/* {isMobile && screenWidth <= 768 && (
<DefaultModal
title="Barcode Reader"
width={800}
@ -4839,7 +4845,7 @@ export default function BSC1Search(props) {
/>
)}
</DefaultModal>
)}
)} */}
</>
);
}