Added Qr scann on mobile Funtionalites
This commit is contained in:
parent
6361cb661e
commit
504ad1229c
|
|
@ -56,6 +56,7 @@ import { changeBreadCrumb } from '../../Features/AppPage/CenterPage.js';
|
||||||
import { BiBarcodeReader } from 'react-icons/bi';
|
import { BiBarcodeReader } from 'react-icons/bi';
|
||||||
import BarcodeScanner from '../BookingScreen/Components/UtillComponents/BarcodeScanner.jsx';
|
import BarcodeScanner from '../BookingScreen/Components/UtillComponents/BarcodeScanner.jsx';
|
||||||
import BarcodeScannerTurbo from '../BookingScreen/Components/UtillComponents/BarcodeScannerTurbo.jsx';
|
import BarcodeScannerTurbo from '../BookingScreen/Components/UtillComponents/BarcodeScannerTurbo.jsx';
|
||||||
|
import BarCodeScan from '../../Services/BarCodeScan.jsx';
|
||||||
|
|
||||||
const subDirectory = import.meta.env.ENV_BASE_URL;
|
const subDirectory = import.meta.env.ENV_BASE_URL;
|
||||||
const items = [
|
const items = [
|
||||||
|
|
@ -1930,10 +1931,16 @@ const TurboAddForm = () => {
|
||||||
</div>
|
</div>
|
||||||
<div className="toolbar-right">
|
<div className="toolbar-right">
|
||||||
{isMobile && window.innerWidth <= 768 && (
|
{isMobile && window.innerWidth <= 768 && (
|
||||||
<BiBarcodeReader
|
// <BiBarcodeReader
|
||||||
// className="search-icon barcode-scanner-icon"
|
// // className="search-icon barcode-scanner-icon"
|
||||||
onClick={() => handleQrcode()}
|
// onClick={() => handleQrcode()}
|
||||||
style={{ cursor: 'pointer', marginLeft: '8px' }}
|
// style={{ cursor: 'pointer', marginLeft: '8px' }}
|
||||||
|
// />
|
||||||
|
<BarCodeScan
|
||||||
|
style={{FontSize:'12px', marginLeft: '8px' }}
|
||||||
|
onScan={(value) => {
|
||||||
|
changeSearchedData(value);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<EnhancedVoiceForm
|
<EnhancedVoiceForm
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue