ordering-ui-react-native 0.17.92 → 0.17.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +530 -527
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +1 -1
- package/themes/original/src/components/Cart/index.tsx +43 -5
- package/themes/original/src/components/CartContent/index.tsx +33 -29
- package/themes/original/src/components/Checkout/index.tsx +12 -1
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +2 -2
- package/themes/original/src/components/MomentOption/index.tsx +159 -63
- package/themes/original/src/components/MomentOption/styles.tsx +15 -0
- package/themes/original/src/components/MultiCheckout/index.tsx +27 -1
- package/themes/original/src/components/OrderSummary/index.tsx +24 -1
- package/themes/original/src/config/constants.tsx +10 -0
- package/themes/original/src/types/index.tsx +9 -1
|
@@ -26,6 +26,7 @@ import AntIcon from 'react-native-vector-icons/AntDesign'
|
|
|
26
26
|
import { TaxInformation } from '../TaxInformation';
|
|
27
27
|
import { TouchableOpacity } from 'react-native';
|
|
28
28
|
import { OAlert } from '../../../../../src/components/shared'
|
|
29
|
+
import { MomentOption } from '../MomentOption';
|
|
29
30
|
|
|
30
31
|
const OrderSummaryUI = (props: any) => {
|
|
31
32
|
const {
|
|
@@ -38,7 +39,14 @@ const OrderSummaryUI = (props: any) => {
|
|
|
38
39
|
commentState,
|
|
39
40
|
handleChangeComment,
|
|
40
41
|
onNavigationRedirect,
|
|
41
|
-
handleRemoveOfferClick
|
|
42
|
+
handleRemoveOfferClick,
|
|
43
|
+
preorderSlotInterval,
|
|
44
|
+
preorderLeadTime,
|
|
45
|
+
preorderTimeRange,
|
|
46
|
+
preorderMaximumDays,
|
|
47
|
+
preorderMinimumDays,
|
|
48
|
+
cateringTypes,
|
|
49
|
+
maxDate
|
|
42
50
|
} = props;
|
|
43
51
|
|
|
44
52
|
const theme = useTheme()
|
|
@@ -339,6 +347,21 @@ const OrderSummaryUI = (props: any) => {
|
|
|
339
347
|
)}
|
|
340
348
|
</OSBill>
|
|
341
349
|
)}
|
|
350
|
+
{cateringTypes.includes(orderState?.options?.type) && maxDate && cart?.business && (
|
|
351
|
+
<View>
|
|
352
|
+
<MomentOption
|
|
353
|
+
maxDate={maxDate}
|
|
354
|
+
cateringPreorder
|
|
355
|
+
isCart
|
|
356
|
+
preorderSlotInterval={preorderSlotInterval}
|
|
357
|
+
preorderLeadTime={preorderLeadTime}
|
|
358
|
+
preorderTimeRange={preorderTimeRange}
|
|
359
|
+
preorderMaximumDays={preorderMaximumDays}
|
|
360
|
+
preorderMinimumDays={preorderMinimumDays}
|
|
361
|
+
business={cart?.business}
|
|
362
|
+
/>
|
|
363
|
+
</View>
|
|
364
|
+
)}
|
|
342
365
|
<OModal
|
|
343
366
|
open={openTaxModal.open}
|
|
344
367
|
onClose={() => setOpenTaxModal({ open: false, data: null, type: '' })}
|
|
@@ -29,5 +29,15 @@ export const ORDER_TYPES = [
|
|
|
29
29
|
value: 5,
|
|
30
30
|
content: 'DRIVE_THRU',
|
|
31
31
|
description: 'ORDERTYPE_DESCRIPTION_DRIVETHRU',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: 7,
|
|
35
|
+
content: 'CATERING_DELIVERY',
|
|
36
|
+
description: 'ORDERTYPE_DESCRIPTION_CATERING_DELIVERY',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: 8,
|
|
40
|
+
content: 'CATERING_PICKUP',
|
|
41
|
+
description: 'ORDERTYPE_DESCRIPTION_CATERING_PICKUP',
|
|
32
42
|
}
|
|
33
43
|
]
|
|
@@ -318,7 +318,7 @@ export interface SingleProductCardParams {
|
|
|
318
318
|
navigation?: any;
|
|
319
319
|
isPreviously?: any;
|
|
320
320
|
isProductId?: any;
|
|
321
|
-
viewString?: string;
|
|
321
|
+
viewString?: string;
|
|
322
322
|
}
|
|
323
323
|
export interface BusinessInformationParams {
|
|
324
324
|
navigation?: any,
|
|
@@ -544,6 +544,14 @@ export interface MomentOptionParams {
|
|
|
544
544
|
dateSelected?: any;
|
|
545
545
|
timeSelected?: any;
|
|
546
546
|
isAsap?: boolean;
|
|
547
|
+
cateringPreorder?: boolean,
|
|
548
|
+
isCart?: boolean,
|
|
549
|
+
preorderLeadTime?: number,
|
|
550
|
+
business?: any,
|
|
551
|
+
getActualSchedule?: any,
|
|
552
|
+
preorderMaximumDays?: number,
|
|
553
|
+
preorderMinimumDays?: number,
|
|
554
|
+
isPage?: boolean,
|
|
547
555
|
handleAsap: () => {};
|
|
548
556
|
handleChangeDate: (value: any) => {};
|
|
549
557
|
handleChangeTime: (value: any) => {};
|