ordering-ui-react-native 0.14.22-release → 0.14.25
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 +2 -2
- package/src/components/ProductForm/index.tsx +15 -13
- package/themes/doordash/src/components/ProductForm/index.tsx +16 -14
- package/themes/instacart/src/components/BusinessProductsList/styles.tsx +1 -1
- package/themes/instacart/src/components/ProductForm/index.tsx +15 -13
- package/themes/instacart/src/components/SingleProductCard/index.tsx +24 -19
- package/themes/instacart/src/components/SingleProductCard/styles.tsx +4 -6
- package/themes/kiosk/src/components/ProductForm/index.tsx +15 -13
- package/themes/original/index.tsx +4 -0
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +2 -1
- package/themes/original/src/components/BusinessesListing/index.tsx +25 -19
- package/themes/original/src/components/Cart/index.tsx +27 -9
- package/themes/original/src/components/CartContent/index.tsx +1 -0
- package/themes/original/src/components/Checkout/index.tsx +15 -4
- package/themes/original/src/components/Checkout/styles.tsx +5 -1
- package/themes/original/src/components/Help/index.tsx +2 -2
- package/themes/original/src/components/OrderDetails/index.tsx +54 -0
- package/themes/original/src/components/OrderProgress/index.tsx +2 -2
- package/themes/original/src/components/OrderSummary/index.tsx +21 -3
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +163 -0
- package/themes/original/src/components/PaymentOptionWallet/styles.tsx +38 -0
- package/themes/original/src/components/ProductForm/index.tsx +21 -19
- package/themes/original/src/components/UserProfile/index.tsx +5 -0
- package/themes/original/src/components/WalletTransactionItem/index.tsx +68 -0
- package/themes/original/src/components/WalletTransactionItem/styles.tsx +37 -0
- package/themes/original/src/components/Wallets/index.tsx +204 -0
- package/themes/original/src/components/Wallets/styles.tsx +43 -0
- package/themes/original/src/types/index.tsx +4 -2
- package/themes/single-business/src/components/ProductForm/index.tsx +29 -28
- package/themes/uber-eats/src/components/ProductForm/index.tsx +15 -13
|
@@ -129,6 +129,7 @@ export interface BusinessesListingParams {
|
|
|
129
129
|
businessTypes?: any;
|
|
130
130
|
defaultBusinessType?: any;
|
|
131
131
|
franchiseId?: any;
|
|
132
|
+
businessId?: any;
|
|
132
133
|
}
|
|
133
134
|
export interface HighestRatedBusinessesParams {
|
|
134
135
|
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
@@ -344,8 +345,8 @@ export interface MessagesParams {
|
|
|
344
345
|
onClose?: () => void,
|
|
345
346
|
isMeesageListing?: boolean,
|
|
346
347
|
setCanRead?: any,
|
|
347
|
-
business
|
|
348
|
-
driver
|
|
348
|
+
business?: boolean,
|
|
349
|
+
driver?: boolean,
|
|
349
350
|
onMessages?: any
|
|
350
351
|
}
|
|
351
352
|
export interface ViewInterface {
|
|
@@ -455,6 +456,7 @@ export interface GoogleMapsParams {
|
|
|
455
456
|
|
|
456
457
|
export interface HelpParams {
|
|
457
458
|
navigation: any;
|
|
459
|
+
businessId?: any;
|
|
458
460
|
}
|
|
459
461
|
|
|
460
462
|
export interface LastOrdersParams {
|
|
@@ -527,34 +527,35 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
527
527
|
);
|
|
528
528
|
}))}
|
|
529
529
|
</View>
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
530
|
+
{!product?.hide_special_instructions && (
|
|
531
|
+
<ProductComment>
|
|
532
|
+
<SectionTitle>
|
|
533
|
+
<OText size={16} weight={'600'} lineHeight={24}>
|
|
534
|
+
{t('SPECIAL_COMMENT', 'Special comment')}
|
|
535
|
+
</OText>
|
|
536
|
+
</SectionTitle>
|
|
537
|
+
<OInput
|
|
538
|
+
multiline={true}
|
|
539
|
+
numberOfLines={10}
|
|
540
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
541
|
+
value={productCart.comment}
|
|
542
|
+
onChange={(val: string) =>
|
|
543
|
+
handleChangeCommentState({ target: { value: val } })
|
|
544
|
+
}
|
|
545
|
+
isDisabled={
|
|
546
|
+
!(productCart && !isSoldOut && maxProductQuantity)
|
|
547
|
+
}
|
|
548
|
+
style={{
|
|
549
|
+
height: 100,
|
|
550
|
+
justifyContent: "flex-end",
|
|
551
|
+
alignItems: 'flex-start',
|
|
552
|
+
borderWidth: 1,
|
|
553
|
+
borderRadius: 8,
|
|
554
|
+
borderColor: theme.colors.border,
|
|
555
|
+
}}
|
|
556
|
+
/>
|
|
557
|
+
</ProductComment>
|
|
558
|
+
)}
|
|
558
559
|
</ProductEditions>
|
|
559
560
|
)}
|
|
560
561
|
</WrapContent>
|
|
@@ -327,19 +327,21 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
327
327
|
</React.Fragment>
|
|
328
328
|
)
|
|
329
329
|
}))}
|
|
330
|
-
|
|
331
|
-
<
|
|
332
|
-
<
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
330
|
+
{!product?.hide_special_instructions && (
|
|
331
|
+
<ProductComment>
|
|
332
|
+
<SectionTitle>
|
|
333
|
+
<OText size={16}>{t('SPECIAL_COMMENT', 'Special comment')}</OText>
|
|
334
|
+
</SectionTitle>
|
|
335
|
+
<OInput
|
|
336
|
+
multiline
|
|
337
|
+
placeholder={t('SPECIAL_COMMENT', 'Special comment')}
|
|
338
|
+
value={productCart.comment}
|
|
339
|
+
onChange={(val: string) => handleChangeCommentState({ target: { value: val } })}
|
|
340
|
+
isDisabled={!(productCart && !isSoldOut && maxProductQuantity)}
|
|
341
|
+
style={styles.comment}
|
|
342
|
+
/>
|
|
343
|
+
</ProductComment>
|
|
344
|
+
)}
|
|
343
345
|
</ProductEditions>
|
|
344
346
|
)}
|
|
345
347
|
</WrapContent>
|