Added new multiple search icon in sales page
This commit is contained in:
parent
d17066d299
commit
01fe805be7
|
|
@ -67,6 +67,9 @@ import BSExpireProductsList from '../../Components/UtillComponents/BSExpireProdu
|
||||||
import ComboSalesBillTable from '../../Components/BSBillingTables/ComboSalesBillTable/ComboSalesBillTable.jsx';
|
import ComboSalesBillTable from '../../Components/BSBillingTables/ComboSalesBillTable/ComboSalesBillTable.jsx';
|
||||||
import { GiBasket } from 'react-icons/gi';
|
import { GiBasket } from 'react-icons/gi';
|
||||||
import { FaRegKeyboard } from 'react-icons/fa';
|
import { FaRegKeyboard } from 'react-icons/fa';
|
||||||
|
import { CgSearchLoading } from "react-icons/cg";
|
||||||
|
import { DefaultModal } from '../../../../Components/Modal/DefaultModal.jsx';
|
||||||
|
import MultipleSearch from '../../Components/UtillComponents/MultipleSearch.jsx';
|
||||||
|
|
||||||
const subDirectory = import.meta.env.BASE_URL;
|
const subDirectory = import.meta.env.BASE_URL;
|
||||||
const commonDirectory = import.meta.env.COMMON_BASE_URL;
|
const commonDirectory = import.meta.env.COMMON_BASE_URL;
|
||||||
|
|
@ -106,6 +109,7 @@ export default function BSCombo1() {
|
||||||
const [count, setcount] = useState(0);
|
const [count, setcount] = useState(0);
|
||||||
const [messageType, setMessageType] = useState(null);
|
const [messageType, setMessageType] = useState(null);
|
||||||
const [messageData, setMessageData] = useState(null);
|
const [messageData, setMessageData] = useState(null);
|
||||||
|
const [multiple, setMultiple] = useState(false);
|
||||||
const BookingBilling = BSComboData?.BookingBilling?.[0];
|
const BookingBilling = BSComboData?.BookingBilling?.[0];
|
||||||
const DineInAccess = SettingDataSelector?.[0]?.SettingDtlDetails.filter(
|
const DineInAccess = SettingDataSelector?.[0]?.SettingDtlDetails.filter(
|
||||||
(i) => i.SettingIdName === 'DineIn'
|
(i) => i.SettingIdName === 'DineIn'
|
||||||
|
|
@ -351,6 +355,13 @@ export default function BSCombo1() {
|
||||||
<div className="SearchSubnavbar-combo">
|
<div className="SearchSubnavbar-combo">
|
||||||
<BSC1NavBar data={BSComboData} SessionData={SessionData} />
|
<BSC1NavBar data={BSComboData} SessionData={SessionData} />
|
||||||
<div className="comboNavbarSubMain">
|
<div className="comboNavbarSubMain">
|
||||||
|
{/* Multiple search */}
|
||||||
|
<Tooltip title={'Multiple Search'}>
|
||||||
|
<div className='MultiSearchIconDiv'>
|
||||||
|
<CgSearchLoading onClick={() => setMultiple(true)} />
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
|
||||||
{Comboglobal === false && (
|
{Comboglobal === false && (
|
||||||
<BSC1Search
|
<BSC1Search
|
||||||
data={BSComboData?.BookingLayout[0]}
|
data={BSComboData?.BookingLayout[0]}
|
||||||
|
|
@ -592,6 +603,21 @@ export default function BSCombo1() {
|
||||||
handleInvoiceClose={handleInvoiceClose}
|
handleInvoiceClose={handleInvoiceClose}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
<DefaultModal
|
||||||
|
open={multiple}
|
||||||
|
title="Multiple Search"
|
||||||
|
footer={false}
|
||||||
|
width={350}
|
||||||
|
handleCancel={() => setMultiple(false)}
|
||||||
|
destroyOnClose={true}
|
||||||
|
children={
|
||||||
|
<>
|
||||||
|
<MultipleSearch
|
||||||
|
close={setMultiple}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue