diff --git a/src/Pages/Kiosk/CardPage/CardPage1.jsx b/src/Pages/Kiosk/CardPage/CardPage1.jsx index 414ba88..ad6a3a0 100644 --- a/src/Pages/Kiosk/CardPage/CardPage1.jsx +++ b/src/Pages/Kiosk/CardPage/CardPage1.jsx @@ -18,6 +18,8 @@ import { import horizontal from '../../../Images/defaultItemImg.png'; import { getConfigType, PreferenceData } from '../../../Features/BookingScreen/BookingData/BookingData'; import { calculateOverAllQtyLimit } from '../../../utils/calculations.js'; +import { IoIosWarning } from "react-icons/io"; + const CardPage1 = (props) => { const dispatch = useDispatch(); @@ -32,6 +34,7 @@ const CardPage1 = (props) => { const [qtydata, setQtydata] = useState(); const [QtyIndex, setQtyIndex] = useState(0); const [ConfigDataList, setConfigDataList] = useState([]); + const [maxLimitExceeded, setMaxLimitExceeded] = useState(false); const kioskTemplateData = props?.data; const SettingDataSelector = useSelector(settingDataSelector); const UomPrint = SettingDataSelector?.[0]?.SettingDtlDetails.filter( @@ -61,7 +64,12 @@ const CardPage1 = (props) => { if (overAllLimitPreferenece) { const calculatedOverAllQty = calculateOverAllQtyLimit(KioskOrderDetails); if ((calculatedOverAllQty + 1) > maxQtyLimit) { - message.warning(`Overall Quantity Limit Exceeds than ${maxQtyLimit}`) + setMaxLimitExceeded(true); + // Reset after 3 seconds + setTimeout(() => { + setMaxLimitExceeded(false); + }, 2000); + return; } } @@ -782,6 +790,11 @@ const CardPage1 = (props) => { > } /> +
+
+
+
+
+
+
+
+
+
+
+ {/*
Get your order bill on your mobile
via SMS / Whatsapp
-
+