ordering-ui-react-native 0.23.40 → 0.23.42
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
CHANGED
|
@@ -451,6 +451,12 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
451
451
|
{selectDate && datesWhitelist[0]?.start !== null && (
|
|
452
452
|
<CalendarStrip
|
|
453
453
|
scrollable
|
|
454
|
+
style={styles.calendar}
|
|
455
|
+
calendarHeaderContainerStyle={styles.calendarHeaderContainer}
|
|
456
|
+
calendarHeaderStyle={styles.calendarHeader}
|
|
457
|
+
iconContainer={{ flex: 0.1 }}
|
|
458
|
+
dayContainerStyle={{ height: '100%' }}
|
|
459
|
+
highlightDateContainerStyle={{ height: '100%' }}
|
|
454
460
|
calendarHeaderFormat='MMMM, YYYY'
|
|
455
461
|
iconStyle={{ borderWidth: 1 }}
|
|
456
462
|
selectedDate={selectDate}
|
|
@@ -464,7 +470,7 @@ const BusinessPreorderUI = (props: BusinessPreorderParams) => {
|
|
|
464
470
|
dateNumberStyle={styles.dateNumber}
|
|
465
471
|
dateNameStyle={styles.dateName}
|
|
466
472
|
disabledDateOpacity={0.6}
|
|
467
|
-
onDateSelected={(date) => onSelectDate(date)}
|
|
473
|
+
onDateSelected={(date: any) => onSelectDate(date)}
|
|
468
474
|
leftSelector={<LeftSelector />}
|
|
469
475
|
rightSelector={<RightSelector />}
|
|
470
476
|
/>
|
|
@@ -593,4 +599,4 @@ export const BusinessPreorder = (props: any) => {
|
|
|
593
599
|
cateringPreorder: !!cateringTypeString
|
|
594
600
|
}
|
|
595
601
|
return <MomentOption {...businessPreorderProps} />
|
|
596
|
-
}
|
|
602
|
+
}
|
|
@@ -203,6 +203,7 @@ const CheckoutUI = (props: any) => {
|
|
|
203
203
|
const creditPointPlanOnBusiness = creditPointPlan?.businesses?.find((b: any) => b.business_id === cart?.business_id && b.accumulates)
|
|
204
204
|
const methodsPay = ['google_pay', 'apple_pay']
|
|
205
205
|
|
|
206
|
+
const commentDelayTime = 1500
|
|
206
207
|
const isPreOrder = configs?.preorder_status_enabled?.value === '1'
|
|
207
208
|
const subtotalWithTaxes = cart?.taxes?.reduce((acc: any, item: any) => {
|
|
208
209
|
if (item?.type === 1)
|
|
@@ -950,6 +951,7 @@ const CheckoutUI = (props: any) => {
|
|
|
950
951
|
cart={cart}
|
|
951
952
|
isCartPending={cart?.status === 2}
|
|
952
953
|
onNavigationRedirect={onNavigationRedirect}
|
|
954
|
+
commentDelayTime={commentDelayTime}
|
|
953
955
|
placeSpotTypes={placeSpotTypes}
|
|
954
956
|
businessConfigs={businessConfigs}
|
|
955
957
|
maxDate={maxDate}
|
|
@@ -427,6 +427,12 @@ const MomentOptionUI = (props: MomentOptionParams) => {
|
|
|
427
427
|
{selectDate && datesWhitelist[0]?.start !== null && (
|
|
428
428
|
<CalendarStrip
|
|
429
429
|
scrollable
|
|
430
|
+
style={styles.calendar}
|
|
431
|
+
calendarHeaderContainerStyle={styles.calendarHeaderContainer}
|
|
432
|
+
calendarHeaderStyle={styles.calendarHeader}
|
|
433
|
+
iconContainer={{ flex: 0.1 }}
|
|
434
|
+
dayContainerStyle={{ height: '100%' }}
|
|
435
|
+
highlightDateContainerStyle={{ height: '100%' }}
|
|
430
436
|
calendarHeaderFormat='MMMM, YYYY'
|
|
431
437
|
iconStyle={{ borderWidth: 1 }}
|
|
432
438
|
selectedDate={dateSelected}
|
|
@@ -504,4 +510,4 @@ export const MomentOption = (props: any) => {
|
|
|
504
510
|
UIComponent: MomentOptionUI,
|
|
505
511
|
};
|
|
506
512
|
return <MomentOptionController {...momentOptionProps} />;
|
|
507
|
-
};
|
|
513
|
+
};
|