ordering-ui-react-native 0.17.41 → 0.17.42-release
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 +8 -7
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/OrderCreating/index.tsx +1 -21
- package/src/components/PaymentOptionsWebView/index.tsx +29 -8
- package/src/components/StripeMethodForm/index.tsx +136 -102
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OToast.tsx +4 -4
- package/src/types/index.tsx +5 -0
- package/src/utils/index.tsx +7 -1
- package/themes/business/index.tsx +2 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +265 -240
- package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +6 -4
- package/themes/business/src/components/BusinessController/index.tsx +0 -1
- package/themes/business/src/components/Chat/index.tsx +125 -113
- package/themes/business/src/components/DriverMap/index.tsx +17 -6
- package/themes/business/src/components/GoogleMap/index.tsx +58 -57
- package/themes/business/src/components/LoginForm/Otp/index.tsx +120 -0
- package/themes/business/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/business/src/components/LoginForm/index.tsx +238 -80
- package/themes/business/src/components/LoginForm/styles.tsx +10 -0
- package/themes/business/src/components/MapView/index.tsx +10 -10
- package/themes/business/src/components/NewOrderNotification/index.tsx +49 -50
- package/themes/business/src/components/OrderDetails/Delivery.tsx +4 -3
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +92 -49
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +59 -62
- package/themes/business/src/components/OrderDetailsLogistic/index.tsx +195 -0
- package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
- package/themes/business/src/components/OrderMessage/index.tsx +18 -17
- package/themes/business/src/components/OrderSummary/index.tsx +113 -121
- package/themes/business/src/components/OrdersOption/index.tsx +32 -75
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +250 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +115 -0
- package/themes/business/src/components/PreviousOrders/index.tsx +445 -243
- package/themes/business/src/components/PreviousOrders/styles.tsx +31 -3
- package/themes/business/src/components/ProductItemAccordion/index.tsx +27 -3
- package/themes/business/src/components/ReviewCustomer/index.tsx +35 -18
- package/themes/business/src/components/StoresList/index.tsx +2 -2
- package/themes/business/src/components/shared/OLink.tsx +33 -13
- package/themes/business/src/components/shared/OModal.tsx +16 -9
- package/themes/business/src/components/shared/OText.tsx +8 -2
- package/themes/business/src/types/index.tsx +32 -2
- package/themes/business/src/utils/index.tsx +44 -1
- package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
- package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/kiosk/src/components/BusinessesListing/index.tsx +2 -1
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/LoginForm/Otp/index.tsx +92 -0
- package/themes/kiosk/src/components/LoginForm/Otp/styles.tsx +7 -0
- package/themes/kiosk/src/components/LoginForm/index.tsx +473 -151
- package/themes/kiosk/src/components/LoginForm/styles.tsx +14 -1
- package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
- package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +3 -2
- package/themes/kiosk/src/components/PhoneInputNumber/styles.tsx +1 -3
- package/themes/kiosk/src/components/ProductForm/index.tsx +1 -14
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/kiosk/src/components/shared/OModal.tsx +14 -11
- package/themes/kiosk/src/layouts/Container.tsx +7 -1
- package/themes/kiosk/src/types/index.d.ts +13 -0
- package/themes/kiosk/src/utils/index.tsx +15 -0
- package/themes/original/index.tsx +6 -0
- package/themes/original/src/components/AddressDetails/index.tsx +29 -11
- package/themes/original/src/components/AddressForm/index.tsx +79 -44
- package/themes/original/src/components/AddressList/index.tsx +26 -21
- package/themes/original/src/components/AddressList/styles.tsx +4 -2
- package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +159 -90
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +9 -7
- package/themes/original/src/components/BusinessController/index.tsx +141 -67
- package/themes/original/src/components/BusinessController/styles.tsx +22 -2
- package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
- package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
- package/themes/original/src/components/BusinessInformation/index.tsx +10 -31
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +23 -22
- package/themes/original/src/components/BusinessListingSearch/index.tsx +351 -326
- package/themes/original/src/components/BusinessPreorder/index.tsx +97 -16
- package/themes/original/src/components/BusinessProductsList/index.tsx +20 -11
- package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
- package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +684 -524
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -4
- package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
- package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +1 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +106 -79
- package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +1 -9
- package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
- package/themes/original/src/components/Cart/index.tsx +102 -69
- package/themes/original/src/components/CartContent/index.tsx +115 -19
- package/themes/original/src/components/CartContent/styles.tsx +17 -7
- package/themes/original/src/components/Checkout/index.tsx +375 -179
- package/themes/original/src/components/Checkout/styles.tsx +4 -2
- package/themes/original/src/components/CitiesControl/index.tsx +89 -0
- package/themes/original/src/components/CitiesControl/styles.tsx +17 -0
- package/themes/original/src/components/CouponControl/index.tsx +10 -3
- package/themes/original/src/components/DriverTips/index.tsx +52 -34
- package/themes/original/src/components/Favorite/index.tsx +8 -9
- package/themes/original/src/components/Favorite/styles.tsx +1 -1
- package/themes/original/src/components/FavoriteList/index.tsx +51 -80
- package/themes/original/src/components/FloatingButton/index.tsx +1 -2
- package/themes/original/src/components/FloatingButton/styles.tsx +1 -1
- package/themes/original/src/components/GPSButton/index.tsx +6 -4
- package/themes/original/src/components/GPSButton/styles.ts +3 -3
- package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +96 -0
- package/themes/original/src/components/GiftCard/GiftCardUI/styles.tsx +5 -0
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +100 -0
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +8 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +191 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/styles.tsx +8 -0
- package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +165 -0
- package/themes/original/src/components/GiftCard/SendGiftCard/styles.tsx +9 -0
- package/themes/original/src/components/GoogleMap/index.tsx +15 -4
- package/themes/original/src/components/Help/index.tsx +8 -8
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +11 -22
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +6 -0
- package/themes/original/src/components/HelpGuide/index.tsx +12 -16
- package/themes/original/src/components/HelpGuide/styles.tsx +6 -0
- package/themes/original/src/components/HelpOrder/index.tsx +12 -25
- package/themes/original/src/components/HelpOrder/styles.tsx +8 -1
- package/themes/original/src/components/Home/index.tsx +13 -4
- package/themes/original/src/components/LastOrder/index.tsx +1 -34
- package/themes/original/src/components/LoginForm/Otp/index.tsx +139 -75
- package/themes/original/src/components/LoginForm/Otp/styles.tsx +0 -1
- package/themes/original/src/components/LoginForm/index.tsx +71 -28
- package/themes/original/src/components/LottieAnimation/index.tsx +89 -55
- package/themes/original/src/components/MessageListing/index.tsx +16 -42
- package/themes/original/src/components/Messages/index.tsx +32 -10
- package/themes/original/src/components/MomentOption/index.tsx +195 -88
- package/themes/original/src/components/MultiCart/index.tsx +50 -0
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +151 -49
- package/themes/original/src/components/MultiCheckout/index.tsx +308 -88
- package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
- package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +37 -224
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +68 -21
- package/themes/original/src/components/MultiOrdersDetails/styles.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +53 -51
- package/themes/original/src/components/NavBar/index.tsx +18 -18
- package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
- package/themes/original/src/components/Notifications/index.tsx +46 -50
- package/themes/original/src/components/Notifications/styles.tsx +6 -3
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +15 -3
- package/themes/original/src/components/OrderDetails/index.tsx +199 -359
- package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
- package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
- package/themes/original/src/components/OrderProgress/index.tsx +93 -114
- package/themes/original/src/components/OrderProgress/styles.tsx +5 -0
- package/themes/original/src/components/OrderSummary/index.tsx +87 -59
- package/themes/original/src/components/OrderTypeSelector/index.tsx +1 -1
- package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +24 -19
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +14 -14
- package/themes/original/src/components/OrdersOption/index.tsx +70 -65
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/PageBanner/index.tsx +171 -0
- package/themes/original/src/components/PageBanner/styles.tsx +11 -0
- package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -0
- package/themes/original/src/components/PaymentOptionStripe/styles.tsx +1 -1
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +64 -7
- package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -4
- package/themes/original/src/components/PlaceSpot/index.tsx +12 -6
- package/themes/original/src/components/ProductForm/index.tsx +116 -37
- package/themes/original/src/components/ProductForm/styles.tsx +5 -7
- package/themes/original/src/components/ProductItemAccordion/index.tsx +14 -13
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +19 -11
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +1 -2
- package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
- package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
- package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
- package/themes/original/src/components/Promotions/index.tsx +234 -220
- package/themes/original/src/components/Promotions/styles.tsx +10 -3
- package/themes/original/src/components/ReviewDriver/index.tsx +3 -3
- package/themes/original/src/components/ReviewOrder/index.tsx +26 -9
- package/themes/original/src/components/ReviewOrder/styles.tsx +7 -0
- package/themes/original/src/components/ReviewProducts/index.tsx +23 -11
- package/themes/original/src/components/ReviewTrigger/index.tsx +27 -9
- package/themes/original/src/components/ReviewTrigger/styles.tsx +8 -1
- package/themes/original/src/components/ScheduleAccordion/index.tsx +68 -0
- package/themes/original/src/components/ScheduleAccordion/styles.tsx +14 -0
- package/themes/original/src/components/ServiceForm/index.tsx +74 -19
- package/themes/original/src/components/Sessions/index.tsx +11 -8
- package/themes/original/src/components/Sessions/styles.tsx +5 -0
- package/themes/original/src/components/SignupForm/index.tsx +42 -19
- package/themes/original/src/components/SingleOrderCard/index.tsx +130 -52
- package/themes/original/src/components/SingleOrderCard/styles.tsx +11 -2
- package/themes/original/src/components/SingleProductCard/index.tsx +72 -34
- package/themes/original/src/components/SingleProductCard/styles.tsx +22 -4
- package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
- package/themes/original/src/components/StripeCardsList/index.tsx +13 -3
- package/themes/original/src/components/StripeElementsForm/index.tsx +28 -15
- package/themes/original/src/components/UpsellingProducts/index.tsx +238 -224
- package/themes/original/src/components/UpsellingProducts/styles.tsx +12 -1
- package/themes/original/src/components/UserDetails/index.tsx +8 -4
- package/themes/original/src/components/UserFormDetails/index.tsx +47 -7
- package/themes/original/src/components/UserProfile/index.tsx +5 -7
- package/themes/original/src/components/UserProfileForm/index.tsx +25 -28
- package/themes/original/src/components/UserProfileForm/styles.tsx +7 -0
- package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
- package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
- package/themes/original/src/components/Wallets/index.tsx +67 -24
- package/themes/original/src/components/Wallets/styles.tsx +5 -4
- package/themes/original/src/components/shared/HeaderTitle.tsx +8 -3
- package/themes/original/src/components/shared/OButton.tsx +6 -2
- package/themes/original/src/components/shared/OInput.tsx +16 -2
- package/themes/original/src/components/shared/OModal.tsx +3 -3
- package/themes/original/src/layouts/Container.tsx +1 -1
- package/themes/original/src/types/index.tsx +38 -9
- package/themes/original/src/utils/index.tsx +364 -58
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
|
@@ -23,21 +23,21 @@ export const PreviousProductsOrdered = (props: PreviousProductsOrderedParams) =>
|
|
|
23
23
|
},
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
const ProductList = (
|
|
26
|
+
const ProductList = () => {
|
|
27
27
|
return (
|
|
28
28
|
<>
|
|
29
|
-
{products?.map((product: any) => (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
{products?.filter((product : any) => product?.business?.available)?.map((product: any) => (
|
|
30
|
+
<SingleProductCard
|
|
31
|
+
key={product?.id}
|
|
32
|
+
isProductId
|
|
33
|
+
isSoldOut={(product.inventoried && !product.quantity)}
|
|
34
|
+
product={product}
|
|
35
|
+
businessId={product?.business?.id}
|
|
36
|
+
onProductClick={onProductClick}
|
|
37
|
+
style={{ width: windowWidth - (products?.length > 1 ? 120 : 80), marginRight: 20 }}
|
|
38
|
+
productAddedToCartLength={0}
|
|
39
|
+
handleUpdateProducts={handleUpdateProducts}
|
|
40
|
+
/>
|
|
41
41
|
))}
|
|
42
42
|
</>
|
|
43
43
|
)
|
|
@@ -45,7 +45,7 @@ export const PreviousProductsOrdered = (props: PreviousProductsOrderedParams) =>
|
|
|
45
45
|
return (
|
|
46
46
|
<ScrollView horizontal={isBusinessesSearchList} style={styles.container} showsVerticalScrollIndicator={false}>
|
|
47
47
|
{isBusinessesSearchList ? (
|
|
48
|
-
<ProductList
|
|
48
|
+
<ProductList />
|
|
49
49
|
) : (
|
|
50
50
|
<ListWrapper isBusinessesSearchList={isBusinessesSearchList}>
|
|
51
51
|
<ProductList />
|
|
@@ -3,7 +3,6 @@ import { OrderList, useLanguage, useOrder, ToastType, useToast } from 'ordering-
|
|
|
3
3
|
import { useTheme } from 'styled-components/native';
|
|
4
4
|
import { useFocusEffect } from '@react-navigation/native'
|
|
5
5
|
import { OText, OButton } from '../shared'
|
|
6
|
-
import { NotFoundSource } from '../NotFoundSource'
|
|
7
6
|
import { ActiveOrders } from '../ActiveOrders'
|
|
8
7
|
import { PreviousOrders } from '../PreviousOrders'
|
|
9
8
|
import { PreviousBusinessOrdered } from './PreviousBusinessOrdered'
|
|
@@ -11,6 +10,7 @@ import { PreviousProductsOrdered } from './PreviousProductsOrdered'
|
|
|
11
10
|
import { OptionTitle, NoOrdersWrapper } from './styles'
|
|
12
11
|
import { OrdersOptionParams } from '../../types'
|
|
13
12
|
import { _setStoreData } from '../../providers/StoreUtil';
|
|
13
|
+
import { NotFoundSource } from '../NotFoundSource';
|
|
14
14
|
import {
|
|
15
15
|
Placeholder,
|
|
16
16
|
PlaceholderLine,
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
} from "rn-placeholder";
|
|
19
19
|
|
|
20
20
|
import { View, ScrollView } from 'react-native'
|
|
21
|
+
import { getOrderStatus, flatArray } from '../../utils'
|
|
21
22
|
|
|
22
23
|
const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
23
24
|
const {
|
|
@@ -60,46 +61,45 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
60
61
|
const [, { showToast }] = useToast()
|
|
61
62
|
const { loading, error, orders: values } = orderList
|
|
62
63
|
const [businessLoading, setBusinessLoading] = useState(true)
|
|
64
|
+
const [orders, setOrders] = useState([])
|
|
63
65
|
|
|
64
66
|
const imageFails = activeOrders
|
|
65
67
|
? theme.images.general.emptyActiveOrders
|
|
66
68
|
: theme.images.general.emptyPastOrders
|
|
67
69
|
|
|
68
|
-
const
|
|
70
|
+
const _orders = customArray || values || []
|
|
71
|
+
const uniqueOrders: any = []
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return objectStatus && objectStatus
|
|
102
|
-
}
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (loading || error) return
|
|
75
|
+
const ordersReduced = _orders.map((order: any) => order?.cart_group_id
|
|
76
|
+
? _orders
|
|
77
|
+
.filter((_order: any) => _order?.cart_group_id === order?.cart_group_id)
|
|
78
|
+
.map((_o: any, _: any, _ordersList: any) => {
|
|
79
|
+
const obj = {
|
|
80
|
+
..._o,
|
|
81
|
+
id: _ordersList.map(o => o.id),
|
|
82
|
+
review: _o.review,
|
|
83
|
+
user_review: _o.user_review,
|
|
84
|
+
total: _ordersList.reduce((acc: any, o: any) => acc + o.summary.total, 0),
|
|
85
|
+
business: _ordersList.map((o: any) => o.business),
|
|
86
|
+
business_id: _ordersList.map((o: any) => o.business_id),
|
|
87
|
+
products: _ordersList.map((o: any) => o.products)
|
|
88
|
+
}
|
|
89
|
+
return obj
|
|
90
|
+
}).find((o: any) => o)
|
|
91
|
+
: order)
|
|
92
|
+
const orders = ordersReduced?.filter((order: any) => {
|
|
93
|
+
if (!order?.cart_group_id) return true
|
|
94
|
+
const isDuplicate = uniqueOrders.includes(order?.cart_group_id)
|
|
95
|
+
if (!isDuplicate) {
|
|
96
|
+
uniqueOrders.push(order?.cart_group_id)
|
|
97
|
+
return true
|
|
98
|
+
}
|
|
99
|
+
return false
|
|
100
|
+
})
|
|
101
|
+
setOrders(orders)
|
|
102
|
+
}, [_orders?.length])
|
|
103
103
|
|
|
104
104
|
const onProductClick = (product: any) => {
|
|
105
105
|
if (product?.product_id && product?.category_id && product?.businessId &&
|
|
@@ -121,6 +121,7 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
useEffect(() => {
|
|
124
|
+
if (reorderState?.loading) return
|
|
124
125
|
const _businessId = 'businessId:' + reorderState?.result?.business_id
|
|
125
126
|
if (reorderState?.error) {
|
|
126
127
|
if (reorderState?.result?.business_id) {
|
|
@@ -128,21 +129,39 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
128
129
|
navigation.navigate('Business', { store: reorderState?.result?.business?.slug })
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
if (!reorderState?.error && reorderState.loading
|
|
132
|
+
if (!reorderState?.error && !reorderState.loading && reorderState?.result?.business_id) {
|
|
132
133
|
const cartProducts = carts?.[_businessId]?.products
|
|
133
|
-
const available = cartProducts.every((product: any) => product.valid === true)
|
|
134
|
-
const orderProducts = orders.find((order: any) => order?.id === reorderState?.result?.orderId)?.products
|
|
135
134
|
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
const available = cartProducts.every((product: any) => product.valid)
|
|
136
|
+
const orderProducts = orders.find(
|
|
137
|
+
(order: any) => Array.isArray(order?.id)
|
|
138
|
+
? order?.id?.includes(reorderState?.result?.orderId)
|
|
139
|
+
: order?.id === reorderState?.result?.orderId
|
|
140
|
+
)?.products
|
|
141
|
+
|
|
142
|
+
const productsFlatten = orderProducts?.length && flatArray(orderProducts)?.filter(product => product?.order_id === reorderState?.result?.orderId)
|
|
143
|
+
|
|
144
|
+
if (available && reorderState?.result?.uuid && (cartProducts?.length === productsFlatten?.length)) {
|
|
145
|
+
const multiOrders = flatArray(orderProducts)?.map(product => product.order_id)
|
|
146
|
+
const params = multiOrders?.length > 1
|
|
147
|
+
? { screen: 'MultiCheckout', checkCarts: true }
|
|
148
|
+
: { cartUuid: reorderState?.result.uuid }
|
|
149
|
+
|
|
150
|
+
onNavigationRedirect && onNavigationRedirect('CheckoutNavigator', params)
|
|
138
151
|
} else {
|
|
139
152
|
_setStoreData('adjust-cart-products', JSON.stringify(_businessId))
|
|
140
|
-
cartProducts?.length !==
|
|
153
|
+
cartProducts?.length !== productsFlatten?.length && _setStoreData('already-removed', JSON.stringify('removed'))
|
|
141
154
|
navigation.navigate('Business', { store: reorderState?.result?.business?.slug })
|
|
142
155
|
}
|
|
143
156
|
}
|
|
144
157
|
}, [reorderState])
|
|
145
158
|
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
if (reorderState?.error) {
|
|
161
|
+
showToast(ToastType.Error, reorderState?.result)
|
|
162
|
+
}
|
|
163
|
+
}, [reorderState])
|
|
164
|
+
|
|
146
165
|
useFocusEffect(
|
|
147
166
|
React.useCallback(() => {
|
|
148
167
|
if (!businessesSearchList) {
|
|
@@ -161,14 +180,14 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
161
180
|
useEffect(() => {
|
|
162
181
|
if (loading) return
|
|
163
182
|
|
|
164
|
-
const updateOrders =
|
|
183
|
+
const updateOrders = _orders.filter((order: any) => orderStatus.includes(order.status))
|
|
165
184
|
|
|
166
185
|
if (activeOrders) {
|
|
167
186
|
setOrdersLength && setOrdersLength({ ...ordersLength, activeOrdersLength: updateOrders?.length })
|
|
168
187
|
} else if (!preOrders) {
|
|
169
188
|
setOrdersLength && setOrdersLength({ ...ordersLength, previousOrdersLength: updateOrders?.length })
|
|
170
189
|
}
|
|
171
|
-
}, [
|
|
190
|
+
}, [_orders, activeOrders, preOrders])
|
|
172
191
|
|
|
173
192
|
useEffect(() => {
|
|
174
193
|
if (refreshOrders) {
|
|
@@ -181,19 +200,16 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
181
200
|
<>
|
|
182
201
|
{!loading && ordersLength.activeOrdersLength === 0 && ordersLength.previousOrdersLength === 0 && !activeOrders && (
|
|
183
202
|
<NoOrdersWrapper>
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
textStyle={{ color: 'white', fontSize: 14 }}
|
|
191
|
-
style={{ borderRadius: 7.6, marginBottom: 10, marginTop: 10, height: 44, paddingLeft: 10, paddingRight: 10 }}
|
|
203
|
+
<NotFoundSource
|
|
204
|
+
hideImage
|
|
205
|
+
btnStyle={{ borderRadius: 8 }}
|
|
206
|
+
content={t('YOU_DONT_HAVE_ORDERS', 'You don\'t have any orders')}
|
|
207
|
+
btnTitle={t('ORDER_NOW', 'Order now')}
|
|
208
|
+
onClickButton={() => onNavigationRedirect && onNavigationRedirect('BusinessList')}
|
|
192
209
|
/>
|
|
193
|
-
|
|
194
210
|
</NoOrdersWrapper>
|
|
195
211
|
)}
|
|
196
|
-
{(ordersLength?.activeOrdersLength > 0 || ordersLength?.previousOrdersLength > 0) && (
|
|
212
|
+
{((ordersLength?.activeOrdersLength > 0 && activeOrders) || (ordersLength?.previousOrdersLength > 0 && !activeOrders)) && (
|
|
197
213
|
<>
|
|
198
214
|
{((titleContent && ((isBusiness && businessOrderIds?.length > 0) || isProducts)) || !titleContent) && (
|
|
199
215
|
<OptionTitle titleContent={!!titleContent} isBusinessesSearchList={!!businessesSearchList}>
|
|
@@ -206,20 +222,9 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
206
222
|
</OText>
|
|
207
223
|
</OptionTitle>
|
|
208
224
|
)}
|
|
209
|
-
|
|
210
|
-
{!(ordersLength?.activeOrdersLength === 0 && ordersLength?.previousOrdersLength === 0) &&
|
|
211
|
-
!loading &&
|
|
212
|
-
orders.filter((order: any) => orderStatus.includes(order.status)).length === 0 &&
|
|
213
|
-
(
|
|
214
|
-
<NotFoundSource
|
|
215
|
-
content={t('NO_RESULTS_FOUND', 'Sorry, no results found')}
|
|
216
|
-
image={imageFails}
|
|
217
|
-
conditioned
|
|
218
|
-
/>
|
|
219
|
-
)}
|
|
220
225
|
</>
|
|
221
226
|
)}
|
|
222
|
-
{isBusiness && !!businessesSearchList && businesses?.loading &&
|
|
227
|
+
{isBusiness && !!businessesSearchList && businesses?.loading && (
|
|
223
228
|
<ScrollView horizontal>
|
|
224
229
|
<BusinessControllerSkeletons paginationProps={businessPaginationProps} />
|
|
225
230
|
</ScrollView>
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import React, { useEffect, useState, useRef } from 'react'
|
|
2
|
+
import { useUtils, useEvent, PageBanner as PageBannerController } from 'ordering-components/native'
|
|
3
|
+
import { View, StyleSheet, Dimensions, TouchableOpacity } from 'react-native'
|
|
4
|
+
import { Fade, Placeholder, PlaceholderLine } from 'rn-placeholder';
|
|
5
|
+
import Carousel from 'react-native-snap-carousel'
|
|
6
|
+
import FastImage from 'react-native-fast-image';
|
|
7
|
+
import IconAntDesign from 'react-native-vector-icons/AntDesign';
|
|
8
|
+
import { useTheme } from 'styled-components/native';
|
|
9
|
+
import { PageBannerWrapper } from './styles'
|
|
10
|
+
|
|
11
|
+
const PageBannerUI = (props: any) => {
|
|
12
|
+
const {
|
|
13
|
+
pageBannerState,
|
|
14
|
+
navigation
|
|
15
|
+
} = props
|
|
16
|
+
|
|
17
|
+
const theme = useTheme();
|
|
18
|
+
const [{ optimizeImage }] = useUtils();
|
|
19
|
+
const [events] = useEvent()
|
|
20
|
+
const carouselRef = useRef<any>(null)
|
|
21
|
+
const [currentIndex, setCurrentIndex] = useState(0)
|
|
22
|
+
const [viewedBanner, setViewedBanner] = useState<any>(null)
|
|
23
|
+
|
|
24
|
+
const windowWidth = Dimensions.get('window').width;
|
|
25
|
+
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
mainSwiper: {
|
|
28
|
+
height: 300,
|
|
29
|
+
},
|
|
30
|
+
swiperButton: {
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
zIndex: 100,
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center',
|
|
35
|
+
width: 32,
|
|
36
|
+
height: 32,
|
|
37
|
+
borderRadius: 16,
|
|
38
|
+
backgroundColor: 'rgba(208,208,208,0.5)'
|
|
39
|
+
},
|
|
40
|
+
sliderWrapper: {
|
|
41
|
+
width: '100%',
|
|
42
|
+
height: 300
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
const onRedirect = (route: string, params?: any) => {
|
|
47
|
+
navigation.push(route, params)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const handleGoToPage = (item: any) => {
|
|
51
|
+
const action = item.action
|
|
52
|
+
if (!action?.url) return
|
|
53
|
+
let slug
|
|
54
|
+
if (action.type === 'business') {
|
|
55
|
+
slug = action.url.split('store/')[1]
|
|
56
|
+
onRedirect('Business', {
|
|
57
|
+
store: slug
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
if (action.type === 'product') {
|
|
61
|
+
slug = action.url.split('store/')[1]?.split('?')[0]
|
|
62
|
+
onRedirect('ProductDetails', {
|
|
63
|
+
businessSlug: slug,
|
|
64
|
+
businessId: action.business_id,
|
|
65
|
+
categoryId: action.category_id,
|
|
66
|
+
productId: action.product_id
|
|
67
|
+
})
|
|
68
|
+
}
|
|
69
|
+
const clickedBanner = pageBannerState.result.find(banner => banner.id === item?.banner_id)
|
|
70
|
+
events.emit('promotion_clicked', clickedBanner)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const renderItem = ({ item, index }) => {
|
|
74
|
+
return (
|
|
75
|
+
<TouchableOpacity
|
|
76
|
+
onPress={() => handleGoToPage(item)}
|
|
77
|
+
>
|
|
78
|
+
<View style={styles.sliderWrapper}>
|
|
79
|
+
<FastImage
|
|
80
|
+
style={{ height: '100%', width: '100%' }}
|
|
81
|
+
resizeMode='cover'
|
|
82
|
+
source={{ uri: optimizeImage(item.url, 'h_300,c_limit') }}
|
|
83
|
+
/>
|
|
84
|
+
</View>
|
|
85
|
+
</TouchableOpacity>
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const updateIndex = () => {
|
|
90
|
+
setCurrentIndex(carouselRef?.current?.currentIndex)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
if (pageBannerState.loading) return
|
|
95
|
+
if (pageBannerState.banner?.items && pageBannerState.banner?.items.length > 0) {
|
|
96
|
+
const bannerId = pageBannerState.banner.items[currentIndex]?.banner_id
|
|
97
|
+
if (pageBannerState.result && bannerId) {
|
|
98
|
+
const _viewedBanner = pageBannerState.result.find(banner => banner.id === bannerId)
|
|
99
|
+
if (_viewedBanner?.id !== viewedBanner?.id) {
|
|
100
|
+
setViewedBanner(_viewedBanner)
|
|
101
|
+
events.emit('promotion_viewed', _viewedBanner)
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, [pageBannerState.loading, currentIndex, viewedBanner])
|
|
106
|
+
|
|
107
|
+
return (
|
|
108
|
+
<>
|
|
109
|
+
{pageBannerState.loading ? (
|
|
110
|
+
<PageBannerWrapper>
|
|
111
|
+
<Placeholder
|
|
112
|
+
Animation={Fade}
|
|
113
|
+
>
|
|
114
|
+
<PlaceholderLine
|
|
115
|
+
height={300}
|
|
116
|
+
style={{ marginBottom: 20, borderRadius: 8 }}
|
|
117
|
+
/>
|
|
118
|
+
</Placeholder>
|
|
119
|
+
</PageBannerWrapper>
|
|
120
|
+
) : (
|
|
121
|
+
<>
|
|
122
|
+
{pageBannerState.banner?.items && pageBannerState.banner?.items.length > 0 && (
|
|
123
|
+
<PageBannerWrapper>
|
|
124
|
+
<TouchableOpacity
|
|
125
|
+
style={[styles.swiperButton, { left: 25 }]}
|
|
126
|
+
onPress={() => carouselRef.current.snapToPrev()}
|
|
127
|
+
>
|
|
128
|
+
<IconAntDesign
|
|
129
|
+
name="caretleft"
|
|
130
|
+
color={theme.colors.white}
|
|
131
|
+
size={13}
|
|
132
|
+
/>
|
|
133
|
+
</TouchableOpacity>
|
|
134
|
+
<TouchableOpacity
|
|
135
|
+
style={[styles.swiperButton, { right: 25 }]}
|
|
136
|
+
onPress={() => carouselRef.current.snapToNext()}
|
|
137
|
+
>
|
|
138
|
+
<IconAntDesign
|
|
139
|
+
name="caretright"
|
|
140
|
+
color={theme.colors.white}
|
|
141
|
+
size={13}
|
|
142
|
+
/>
|
|
143
|
+
</TouchableOpacity>
|
|
144
|
+
<Carousel
|
|
145
|
+
ref={carouselRef}
|
|
146
|
+
loop={pageBannerState.banner?.items.length > 1}
|
|
147
|
+
data={pageBannerState.banner?.items}
|
|
148
|
+
renderItem={renderItem}
|
|
149
|
+
sliderWidth={windowWidth - 80}
|
|
150
|
+
itemWidth={windowWidth - 80}
|
|
151
|
+
inactiveSlideScale={1}
|
|
152
|
+
pagingEnabled
|
|
153
|
+
removeClippedSubviews={false}
|
|
154
|
+
inactiveSlideOpacity={1}
|
|
155
|
+
onSnapToItem={updateIndex}
|
|
156
|
+
/>
|
|
157
|
+
</PageBannerWrapper>
|
|
158
|
+
)}
|
|
159
|
+
</>
|
|
160
|
+
)}
|
|
161
|
+
</>
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export const PageBanner = (props: any) => {
|
|
166
|
+
const pageBannerProps = {
|
|
167
|
+
...props,
|
|
168
|
+
UIComponent: PageBannerUI
|
|
169
|
+
}
|
|
170
|
+
return <PageBannerController {...pageBannerProps} />
|
|
171
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components/native'
|
|
2
|
+
|
|
3
|
+
export const PageBannerWrapper = styled.View`
|
|
4
|
+
margin-horizontal: 40px;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
margin-vertical: 30px;
|
|
8
|
+
position: relative;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
align-items: center;
|
|
11
|
+
`
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react'
|
|
2
|
+
import { View, Modal, TouchableOpacity, StyleSheet, SafeAreaView, KeyboardAvoidingView, Platform, ScrollView } from 'react-native'
|
|
3
|
+
import { OButton, OIcon, OInput, OModal, OText } from '../shared'
|
|
4
|
+
import { PaymentOptionStripe, useLanguage, useSession } from 'ordering-components/native'
|
|
5
|
+
import { StripeCardsListUI } from '../StripeCardsList'
|
|
6
|
+
import { useTheme } from 'styled-components/native';
|
|
7
|
+
import { CreditCardInput } from "react-native-credit-card-input-plus";
|
|
8
|
+
import Alert from '../../providers/AlertProvider'
|
|
9
|
+
|
|
10
|
+
const PaymentOptionCardUI = (props: any) => {
|
|
11
|
+
const {
|
|
12
|
+
cardSelected,
|
|
13
|
+
deleteCard,
|
|
14
|
+
onSelectCard,
|
|
15
|
+
handleCardClick,
|
|
16
|
+
cardsList,
|
|
17
|
+
addCardOpen,
|
|
18
|
+
setAddCardOpen,
|
|
19
|
+
gateway,
|
|
20
|
+
handleNewCard,
|
|
21
|
+
paymethodsWithoutSaveCards
|
|
22
|
+
} = props
|
|
23
|
+
const [, t] = useLanguage()
|
|
24
|
+
const theme = useTheme()
|
|
25
|
+
const [{ token }] = useSession()
|
|
26
|
+
const [alertState, setAlertState] = useState<{ open: boolean, content: Array<string> }>({ open: false, content: [] })
|
|
27
|
+
const [newCard, setNewCard] = useState<any>(null)
|
|
28
|
+
|
|
29
|
+
const onChangeCardForm = (values : any) => {
|
|
30
|
+
if (values?.valid) {
|
|
31
|
+
const expiry = values?.values?.expiry?.split('/')
|
|
32
|
+
const expiryMonth = expiry[0]
|
|
33
|
+
const expiryYear = expiry[1]
|
|
34
|
+
const expiryString = expiryMonth + expiryYear
|
|
35
|
+
let lastFourDigits = values?.values?.number?.substr(-4);
|
|
36
|
+
setNewCard({
|
|
37
|
+
name: values?.values.name,
|
|
38
|
+
number: values?.values.number.replace(/\s/g, ''),
|
|
39
|
+
cvc: values?.values.cvc,
|
|
40
|
+
expiryMonth: expiryMonth,
|
|
41
|
+
expiryYear: expiryYear,
|
|
42
|
+
expiry: expiry,
|
|
43
|
+
brand: values?.values?.type,
|
|
44
|
+
last4: lastFourDigits,
|
|
45
|
+
expiryString: expiryString
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const handleAddNewCard = () => {
|
|
51
|
+
handleNewCard(newCard)
|
|
52
|
+
setAddCardOpen({ ...addCardOpen, card: false })
|
|
53
|
+
setNewCard(null)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (cardsList.error && !cardsList.loading) {
|
|
58
|
+
setAlertState({
|
|
59
|
+
open: true,
|
|
60
|
+
content: cardsList.error
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
}, [JSON.stringify(cardsList)])
|
|
64
|
+
|
|
65
|
+
const style = StyleSheet.create({
|
|
66
|
+
wrapperIcon: {
|
|
67
|
+
marginLeft: 25,
|
|
68
|
+
marginTop: Platform.OS === 'ios' ? 40 : 12,
|
|
69
|
+
marginBottom: 20,
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
justifyContent: 'center',
|
|
72
|
+
},
|
|
73
|
+
buttonStyle: {
|
|
74
|
+
marginVertical: 20,
|
|
75
|
+
borderRadius: 7.6,
|
|
76
|
+
shadowOpacity: 0,
|
|
77
|
+
height: 44,
|
|
78
|
+
borderWidth: 1
|
|
79
|
+
}
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<View>
|
|
84
|
+
<>
|
|
85
|
+
{token && (!cardSelected || !paymethodsWithoutSaveCards.includes(gateway)) && (
|
|
86
|
+
<OButton
|
|
87
|
+
text={t('ADD_PAYMENT_CARD', 'Add New Payment Card')}
|
|
88
|
+
bgColor={theme.colors.white}
|
|
89
|
+
borderColor={theme.colors.primary}
|
|
90
|
+
style={{
|
|
91
|
+
marginVertical: 20,
|
|
92
|
+
borderRadius: 7.6,
|
|
93
|
+
shadowOpacity: 0,
|
|
94
|
+
height: 44,
|
|
95
|
+
borderWidth: 1
|
|
96
|
+
}}
|
|
97
|
+
textStyle={{ color: theme.colors.primary, fontSize: 12 }}
|
|
98
|
+
imgRightSrc={null}
|
|
99
|
+
onClick={() => setAddCardOpen({ ...addCardOpen, card: true })}
|
|
100
|
+
/>
|
|
101
|
+
)}
|
|
102
|
+
<StripeCardsListUI
|
|
103
|
+
cardSelected={cardSelected}
|
|
104
|
+
deleteCard={deleteCard}
|
|
105
|
+
onSelectCard={onSelectCard}
|
|
106
|
+
handleCardClick={handleCardClick}
|
|
107
|
+
cardsList={cardsList}
|
|
108
|
+
noShowErrors
|
|
109
|
+
gateway={gateway}
|
|
110
|
+
/>
|
|
111
|
+
</>
|
|
112
|
+
<Modal
|
|
113
|
+
animationType="slide"
|
|
114
|
+
visible={addCardOpen?.card}
|
|
115
|
+
onDismiss={() => setAddCardOpen({ ...addCardOpen, card: false })}
|
|
116
|
+
>
|
|
117
|
+
<KeyboardAvoidingView
|
|
118
|
+
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
|
|
119
|
+
style={{
|
|
120
|
+
flex: 1,
|
|
121
|
+
}}
|
|
122
|
+
>
|
|
123
|
+
<ScrollView>
|
|
124
|
+
<TouchableOpacity onPress={() => setAddCardOpen({ ...addCardOpen, card: false })}>
|
|
125
|
+
<OIcon
|
|
126
|
+
src={theme.images.general.close}
|
|
127
|
+
width={16}
|
|
128
|
+
style={style.wrapperIcon}
|
|
129
|
+
/>
|
|
130
|
+
</TouchableOpacity>
|
|
131
|
+
<>
|
|
132
|
+
<CreditCardInput
|
|
133
|
+
onChange={onChangeCardForm}
|
|
134
|
+
requiresName
|
|
135
|
+
/>
|
|
136
|
+
{alertState?.content?.[0] && !cardsList?.loading && (
|
|
137
|
+
<OText
|
|
138
|
+
color={theme?.colors?.error}
|
|
139
|
+
style={{
|
|
140
|
+
alignSelf: 'center'
|
|
141
|
+
}}
|
|
142
|
+
size={20}
|
|
143
|
+
>
|
|
144
|
+
{alertState.content[0]}
|
|
145
|
+
</OText>
|
|
146
|
+
)}
|
|
147
|
+
<OButton
|
|
148
|
+
text={t('ADD_CARD', 'Add card')}
|
|
149
|
+
isDisabled={!newCard || cardsList?.loading}
|
|
150
|
+
isLoading={cardsList?.loading}
|
|
151
|
+
onClick={() => handleAddNewCard()}
|
|
152
|
+
style={{
|
|
153
|
+
margin: 20,
|
|
154
|
+
...style.buttonStyle
|
|
155
|
+
}}
|
|
156
|
+
/>
|
|
157
|
+
</>
|
|
158
|
+
</ScrollView>
|
|
159
|
+
</KeyboardAvoidingView>
|
|
160
|
+
</Modal>
|
|
161
|
+
<Alert
|
|
162
|
+
open={alertState?.open || false}
|
|
163
|
+
title=''
|
|
164
|
+
content={alertState.content}
|
|
165
|
+
onClose={() => setAlertState({ open: false, content: [] })}
|
|
166
|
+
onAccept={() => setAlertState({ open: false, content: [] })}
|
|
167
|
+
/>
|
|
168
|
+
</View>
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export const PaymentOptionCard = (props : any) => {
|
|
173
|
+
const paymentOptions = {
|
|
174
|
+
...props,
|
|
175
|
+
UIComponent: PaymentOptionCardUI
|
|
176
|
+
}
|
|
177
|
+
return (
|
|
178
|
+
<PaymentOptionStripe {...paymentOptions} />
|
|
179
|
+
)
|
|
180
|
+
}
|