ordering-ui-react-native 0.22.52 → 0.22.53
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/AddressForm/index.tsx +0 -11
- package/themes/original/src/components/AddressList/index.tsx +0 -13
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +4 -2
- package/themes/original/src/components/BusinessListingSearch/BusinessSearchHeader.tsx +1 -3
- package/themes/original/src/components/BusinessListingSearch/index.tsx +1 -2
- package/themes/original/src/components/BusinessPreorder/index.tsx +14 -17
- package/themes/original/src/components/Cart/index.tsx +1 -2
- package/themes/original/src/components/CartContent/index.tsx +1 -2
- package/themes/original/src/components/Checkout/index.tsx +0 -6
- package/themes/original/src/components/CitiesControl/index.tsx +0 -3
- package/themes/original/src/components/CouponControl/index.tsx +1 -3
- package/themes/original/src/components/DriverTips/index.tsx +1 -3
- package/themes/original/src/components/Favorite/index.tsx +0 -5
- package/themes/original/src/components/FavoriteList/index.tsx +0 -1
- package/themes/original/src/components/ForgotPasswordForm/index.tsx +4 -10
- package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +15 -17
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +3 -7
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +24 -32
- package/themes/original/src/components/GiftCard/SendGiftCard/index.tsx +7 -9
- package/themes/original/src/components/GiftCard/VerticalGiftCardOrdersLayout/index.tsx +11 -12
- package/themes/original/src/components/Help/index.tsx +0 -5
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +0 -5
- package/themes/original/src/components/HelpGuide/index.tsx +0 -5
- package/themes/original/src/components/HelpOrder/index.tsx +0 -5
- package/themes/original/src/components/Home/index.tsx +0 -3
- package/themes/original/src/components/LoginForm/Otp/index.tsx +0 -3
- package/themes/original/src/components/LoginForm/index.tsx +0 -9
- package/themes/original/src/components/MessageListing/index.tsx +0 -5
- package/themes/original/src/components/MomentOption/index.tsx +1 -8
- package/themes/original/src/components/MultiCheckout/index.tsx +0 -1
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -0
- package/themes/original/src/components/MyOrders/index.tsx +0 -5
- package/themes/original/src/components/NavBar/index.tsx +1 -4
- package/themes/original/src/components/NetworkError/index.tsx +0 -5
- package/themes/original/src/components/NotFoundSource/index.tsx +0 -3
- package/themes/original/src/components/Notifications/index.tsx +0 -5
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +5 -7
- package/themes/original/src/components/OrderDetails/index.tsx +0 -2
- package/themes/original/src/components/OrderTypeSelector/index.tsx +3 -8
- package/themes/original/src/components/PaymentOptionStripe/index.tsx +0 -5
- package/themes/original/src/components/PaymentOptions/index.tsx +0 -2
- package/themes/original/src/components/PlaceSpot/index.tsx +1 -3
- package/themes/original/src/components/PreviousOrders/index.tsx +1 -4
- package/themes/original/src/components/ProductForm/ActionButton.tsx +3 -4
- package/themes/original/src/components/ProfessionalProfile/index.tsx +4 -5
- package/themes/original/src/components/Promotions/index.tsx +2 -7
- package/themes/original/src/components/ReviewDriver/index.tsx +1 -6
- package/themes/original/src/components/ReviewOrder/index.tsx +2 -7
- package/themes/original/src/components/ReviewProducts/index.tsx +1 -6
- package/themes/original/src/components/ReviewTrigger/index.tsx +2 -2
- package/themes/original/src/components/ServiceForm/index.tsx +52 -54
- package/themes/original/src/components/Sessions/index.tsx +3 -8
- package/themes/original/src/components/SignupForm/index.tsx +3 -13
- package/themes/original/src/components/SingleOrderCard/index.tsx +0 -1
- package/themes/original/src/components/SingleProductCard/index.tsx +2 -2
- package/themes/original/src/components/StripeCardForm/index.tsx +0 -3
- package/themes/original/src/components/StripeElementsForm/index.tsx +0 -1
- package/themes/original/src/components/StripeRedirectForm/index.tsx +0 -3
- package/themes/original/src/components/UpsellingProducts/UpsellingContent.tsx +1 -3
- package/themes/original/src/components/UserFormDetails/index.tsx +1 -5
- package/themes/original/src/components/UserProfileForm/index.tsx +0 -5
- package/themes/original/src/components/Wallets/index.tsx +1 -3
- package/themes/original/src/components/WebsocketStatus/index.tsx +1 -4
- package/themes/original/src/components/shared/OButton.tsx +3 -2
|
@@ -37,11 +37,6 @@ export const HelpAccountAndPayment = (props: HelpAccountAndPaymentParams) => {
|
|
|
37
37
|
onActionLeft={goToBack}
|
|
38
38
|
btnStyle={{ paddingLeft: 0 }}
|
|
39
39
|
showCall={false}
|
|
40
|
-
buttonProps={{
|
|
41
|
-
bgColor: theme.colors.white,
|
|
42
|
-
borderColor: theme.colors.white,
|
|
43
|
-
textStyle: { color: theme.colors.btnFont }
|
|
44
|
-
}}
|
|
45
40
|
/>
|
|
46
41
|
<Content>
|
|
47
42
|
<OText mBottom={20}>
|
|
@@ -43,11 +43,6 @@ export const HelpGuide = (props: HelpGuideParams) => {
|
|
|
43
43
|
onActionLeft={goToBack}
|
|
44
44
|
btnStyle={{ paddingLeft: 0 }}
|
|
45
45
|
showCall={false}
|
|
46
|
-
buttonProps={{
|
|
47
|
-
bgColor: theme.colors.white,
|
|
48
|
-
borderColor: theme.colors.white,
|
|
49
|
-
textStyle: { color: theme.colors.btnFont }
|
|
50
|
-
}}
|
|
51
46
|
/>
|
|
52
47
|
<Content>
|
|
53
48
|
<OText mBottom={15}>
|
|
@@ -39,11 +39,6 @@ export const HelpOrder = (props: HelpOrderParams) => {
|
|
|
39
39
|
onActionLeft={goToBack}
|
|
40
40
|
btnStyle={{ paddingLeft: 0 }}
|
|
41
41
|
showCall={false}
|
|
42
|
-
buttonProps={{
|
|
43
|
-
bgColor: theme.colors.white,
|
|
44
|
-
borderColor: theme.colors.white,
|
|
45
|
-
textStyle: { color: theme.colors.btnFont }
|
|
46
|
-
}}
|
|
47
42
|
/>
|
|
48
43
|
<Content>
|
|
49
44
|
<OText mBottom={20}>
|
|
@@ -49,11 +49,8 @@ export const Home = (props: any) => {
|
|
|
49
49
|
</OText>
|
|
50
50
|
<OButton
|
|
51
51
|
text={t('LOGIN_NOW', 'Login now')}
|
|
52
|
-
bgColor={theme.colors.primary}
|
|
53
|
-
borderColor={theme.colors.primary}
|
|
54
52
|
style={styles.buttons}
|
|
55
53
|
isCircle={false}
|
|
56
|
-
textStyle={{ color: 'white' }}
|
|
57
54
|
onClick={() => onNavigationRedirect('Login')}
|
|
58
55
|
imgRightSrc={null}
|
|
59
56
|
/>
|
|
@@ -145,9 +145,6 @@ export const Otp = (props: otpParams) => {
|
|
|
145
145
|
</TouchableOpacity>
|
|
146
146
|
<OButton
|
|
147
147
|
onClick={() => handleCloseOtp()}
|
|
148
|
-
bgColor={theme.colors.white}
|
|
149
|
-
borderColor={theme.colors.primary}
|
|
150
|
-
textStyle={{ color: theme.colors.primary }}
|
|
151
148
|
style={{ borderRadius: 8, width: '100%' }}
|
|
152
149
|
text={t('CANCEL', 'Cancel')}
|
|
153
150
|
/>
|
|
@@ -412,11 +412,6 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
412
412
|
btnStyle={{ paddingLeft: 0 }}
|
|
413
413
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
414
414
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
415
|
-
buttonProps={{
|
|
416
|
-
bgColor: theme.colors.white,
|
|
417
|
-
borderColor: theme.colors.white,
|
|
418
|
-
textStyle: { color: theme.colors.btnFont }
|
|
419
|
-
}}
|
|
420
415
|
/>
|
|
421
416
|
)}
|
|
422
417
|
<FormSide>
|
|
@@ -711,9 +706,6 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
711
706
|
<OButton
|
|
712
707
|
onClick={handleSubmit(onSubmit)}
|
|
713
708
|
text={loginTab !== 'otp' ? loginButtonText : t('GET_VERIFY_CODE', 'Get verify code')}
|
|
714
|
-
bgColor={theme.colors.primary}
|
|
715
|
-
borderColor={theme.colors.primary}
|
|
716
|
-
textStyle={{ color: 'white' }}
|
|
717
709
|
imgRightSrc={null}
|
|
718
710
|
isLoading={formState.loading}
|
|
719
711
|
style={{ borderRadius: 7.6, marginTop: 10, marginBottom: 25 }}
|
|
@@ -752,7 +744,6 @@ const LoginFormUI = (props: LoginParams) => {
|
|
|
752
744
|
<OButton
|
|
753
745
|
onClick={handleVerifyCodeClick}
|
|
754
746
|
text={t('GET_VERIFY_CODE', 'Get Verify Code')}
|
|
755
|
-
borderColor={theme.colors.primary}
|
|
756
747
|
style={loginStyle.btnOutline}
|
|
757
748
|
imgRightSrc={null}
|
|
758
749
|
isLoading={isLoadingVerifyModal}
|
|
@@ -266,11 +266,6 @@ export const MessageListing = (props: MessageListingParams) => {
|
|
|
266
266
|
showCall={false}
|
|
267
267
|
paddingTop={Platform.OS === 'ios' ? 20 : 10}
|
|
268
268
|
btnStyle={{ paddingLeft: 0 }}
|
|
269
|
-
buttonProps={{
|
|
270
|
-
bgColor: theme.colors.white,
|
|
271
|
-
borderColor: theme.colors.white,
|
|
272
|
-
textStyle: { color: theme.colors.btnFont }
|
|
273
|
-
}}
|
|
274
269
|
/>
|
|
275
270
|
<OrderListing
|
|
276
271
|
ordersLength={{ activeOrdersLength: 0, previousOrdersLength: 0 }}
|
|
@@ -343,11 +343,6 @@ const MomentOptionUI = (props: MomentOptionParams) => {
|
|
|
343
343
|
titleAlign={'center'}
|
|
344
344
|
titleStyle={{ fontSize: 20, marginRight: 0, marginLeft: 0 }}
|
|
345
345
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
346
|
-
buttonProps={{
|
|
347
|
-
bgColor: theme.colors.white,
|
|
348
|
-
borderColor: theme.colors.white,
|
|
349
|
-
textStyle: { color: theme.colors.btnFont }
|
|
350
|
-
}}
|
|
351
346
|
/>
|
|
352
347
|
)}
|
|
353
348
|
{(preorderMinimumDays === 0 && preorderLeadTime === 0) || !cateringPreorder && (
|
|
@@ -476,12 +471,10 @@ const MomentOptionUI = (props: MomentOptionParams) => {
|
|
|
476
471
|
<View style={{ position: 'absolute', bottom: bottom, paddingBottom: 20, paddingHorizontal: 20, backgroundColor: 'white', width: '100%' }}>
|
|
477
472
|
<OButton
|
|
478
473
|
onClick={() => handleChangeMoment()}
|
|
479
|
-
bgColor={theme.colors.primary}
|
|
480
|
-
borderColor={theme.colors.primary}
|
|
481
474
|
isDisabled={!selectedTime}
|
|
482
475
|
text={t('CONTINUE', 'Continue')}
|
|
483
476
|
style={{ borderRadius: 7.6, height: 44, shadowOpacity: 0 }}
|
|
484
|
-
textStyle={{
|
|
477
|
+
textStyle={{ fontSize: 14 }}
|
|
485
478
|
showNextIcon
|
|
486
479
|
/>
|
|
487
480
|
</View>
|
|
@@ -394,7 +394,6 @@ const MultiCheckoutUI = (props: any) => {
|
|
|
394
394
|
</OText>
|
|
395
395
|
<OButton
|
|
396
396
|
text={t('SIGN_UP', 'Sign up')}
|
|
397
|
-
textStyle={{ color: theme.colors.white }}
|
|
398
397
|
style={{ borderRadius: 7.6, marginTop: 20 }}
|
|
399
398
|
onClick={() => setOpenModal({ ...openModal, signup: true })}
|
|
400
399
|
/>
|
|
@@ -101,11 +101,6 @@ export const MyOrders = (props: any) => {
|
|
|
101
101
|
showCall={false}
|
|
102
102
|
paddingTop={30}
|
|
103
103
|
btnStyle={{ paddingLeft: 0 }}
|
|
104
|
-
buttonProps={{
|
|
105
|
-
bgColor: theme.colors.white,
|
|
106
|
-
borderColor: theme.colors.white,
|
|
107
|
-
textStyle: { color: theme.colors.btnFont }
|
|
108
|
-
}}
|
|
109
104
|
/>
|
|
110
105
|
)}
|
|
111
106
|
</View>
|
|
@@ -44,7 +44,6 @@ interface Props {
|
|
|
44
44
|
isVertical?: boolean,
|
|
45
45
|
noMargin?: any
|
|
46
46
|
hideArrowLeft?: boolean
|
|
47
|
-
buttonProps?: any
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
const NavBar = (props: Props) => {
|
|
@@ -65,7 +64,7 @@ const NavBar = (props: Props) => {
|
|
|
65
64
|
<Wrapper style={{ paddingTop: props.paddingTop, ...{ flexDirection: props.isVertical ? 'column' : 'row', alignItems: props.isVertical ? 'flex-start' : 'center' }, ...props.style }}>
|
|
66
65
|
{!props.hideArrowLeft && (
|
|
67
66
|
<OButton
|
|
68
|
-
|
|
67
|
+
useArrow
|
|
69
68
|
iconProps={{
|
|
70
69
|
name: 'arrowleft',
|
|
71
70
|
size: 26
|
|
@@ -116,8 +115,6 @@ const NavBar = (props: Props) => {
|
|
|
116
115
|
{props.showCall
|
|
117
116
|
? (<OButton
|
|
118
117
|
isCircle={true}
|
|
119
|
-
bgColor={theme.colors.primary}
|
|
120
|
-
borderColor={theme.colors.primary}
|
|
121
118
|
imgRightSrc={null}
|
|
122
119
|
imgLeftStyle={{ tintColor: 'white', width: 30, height: 30 }}
|
|
123
120
|
imgLeftSrc={theme.images.general.support}
|
|
@@ -45,15 +45,10 @@ export const NetworkError = (props: NoNetworkParams) => {
|
|
|
45
45
|
/>
|
|
46
46
|
<OButton
|
|
47
47
|
text={t('REFRESH', 'Refresh')}
|
|
48
|
-
bgColor={theme.colors.primary}
|
|
49
|
-
borderColor={theme.colors.primary}
|
|
50
48
|
style={{
|
|
51
49
|
borderRadius: 8,
|
|
52
50
|
marginTop: 45
|
|
53
51
|
}}
|
|
54
|
-
textStyle={{
|
|
55
|
-
color: theme.colors.white
|
|
56
|
-
}}
|
|
57
52
|
onClick={() => RNRestart.Restart()}
|
|
58
53
|
/>
|
|
59
54
|
</ImageContainer>
|
|
@@ -42,11 +42,8 @@ export const NotFoundSource = (props: NotFoundSourceParams) => {
|
|
|
42
42
|
<View style={{ marginTop: 10, width: '100%' }}>
|
|
43
43
|
<OButton
|
|
44
44
|
style={{ width: '100%', height: 50, ...btnStyle }}
|
|
45
|
-
bgColor={theme.colors.primary}
|
|
46
|
-
borderColor={theme.colors.primary}
|
|
47
45
|
onClick={() => onClickButton()}
|
|
48
46
|
text={btnTitle}
|
|
49
|
-
textStyle={{ color: theme.colors.white }}
|
|
50
47
|
/>
|
|
51
48
|
</View>
|
|
52
49
|
)}
|
|
@@ -75,11 +75,6 @@ const NotificationsUI = (props: any) => {
|
|
|
75
75
|
showCall={false}
|
|
76
76
|
style={{ paddingVertical: 0 }}
|
|
77
77
|
btnStyle={{ paddingLeft: 0 }}
|
|
78
|
-
buttonProps={{
|
|
79
|
-
bgColor: theme.colors.white,
|
|
80
|
-
borderColor: theme.colors.white,
|
|
81
|
-
textStyle: { color: theme.colors.btnFont }
|
|
82
|
-
}}
|
|
83
78
|
/>
|
|
84
79
|
{showCustomerPromotions && showNotifications && (
|
|
85
80
|
<>
|
|
@@ -145,10 +145,10 @@ export const OrderHistory = (props: any) => {
|
|
|
145
145
|
</>
|
|
146
146
|
)
|
|
147
147
|
: message.change?.attribute === 'prepared_in' ? (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
<>
|
|
149
|
+
{t('TIME_ADDED_BY_BUSINESS', 'Time added by business')}{'\n'}
|
|
150
|
+
{formatSeconds(parseInt(message.change.new, 10))}
|
|
151
|
+
</>
|
|
152
152
|
) : t(ORDER_STATUS[parseInt(message.change.new, 10)])
|
|
153
153
|
}
|
|
154
154
|
</OText>
|
|
@@ -170,11 +170,9 @@ export const OrderHistory = (props: any) => {
|
|
|
170
170
|
))}
|
|
171
171
|
<OButton
|
|
172
172
|
text={enableReview ? t('REVIEW_ORDER', 'Review order') : t('CONTINUE', 'Continue')}
|
|
173
|
-
textStyle={{ fontSize: 14
|
|
173
|
+
textStyle={{ fontSize: 14 }}
|
|
174
174
|
imgRightSrc={theme.images.general.arrow_right}
|
|
175
175
|
imgRightStyle={{ tintColor: theme.colors.white, right: 5, margin: 5 }}
|
|
176
|
-
borderColor='transparent'
|
|
177
|
-
bgColor={theme.colors.primary}
|
|
178
176
|
style={{ borderRadius: 7.6, borderWidth: 1, height: 44, shadowOpacity: 0, marginBottom: 30, marginTop: 20 }}
|
|
179
177
|
onClick={() => handleReview()}
|
|
180
178
|
/>
|
|
@@ -643,7 +643,6 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
643
643
|
<OButton
|
|
644
644
|
text={t('GET_DIRECTIONS', 'Get Directions')}
|
|
645
645
|
imgRightSrc=''
|
|
646
|
-
textStyle={{ color: theme.colors.white }}
|
|
647
646
|
style={{
|
|
648
647
|
alignSelf: 'center',
|
|
649
648
|
borderRadius: 10,
|
|
@@ -833,7 +832,6 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
833
832
|
text={t('YOUR_ORDERS', 'Your Orders')}
|
|
834
833
|
textStyle={{ fontSize: 14, color: theme.colors.primary }}
|
|
835
834
|
imgRightSrc={null}
|
|
836
|
-
borderColor={theme.colors.primary}
|
|
837
835
|
bgColor={theme.colors.clear}
|
|
838
836
|
style={{ borderRadius: 7.6, borderWidth: 1, height: 44, shadowOpacity: 0 }}
|
|
839
837
|
parentStyle={{ marginTop: 29, marginEnd: 15 }}
|
|
@@ -31,9 +31,9 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
|
|
|
31
31
|
const [orderState] = useOrder();
|
|
32
32
|
const [, t] = useLanguage();
|
|
33
33
|
const _orderTypes = orderTypes.filter((type: any) => configTypes?.includes(type.value));
|
|
34
|
-
const orderTypeTitle = (type
|
|
35
|
-
const orderTypeDescription = (type
|
|
36
|
-
const orderTypeCallAction = (type
|
|
34
|
+
const orderTypeTitle = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.title
|
|
35
|
+
const orderTypeDescription = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.description
|
|
36
|
+
const orderTypeCallAction = (type: string) => theme?.header?.components?.order_types?.components?.[type]?.components?.call_to_action
|
|
37
37
|
const items = _orderTypes.map((type) => {
|
|
38
38
|
return {
|
|
39
39
|
value: type.value,
|
|
@@ -103,11 +103,6 @@ const OrderTypeSelectorUI = (props: OrderTypeSelectParams) => {
|
|
|
103
103
|
title={t('HOW_WILL_YOU_DELIVERY_TYPE', 'How will your order type?')}
|
|
104
104
|
titleAlign={'center'}
|
|
105
105
|
noMargin
|
|
106
|
-
buttonProps={{
|
|
107
|
-
bgColor: theme.colors.white,
|
|
108
|
-
borderColor: theme.colors.white,
|
|
109
|
-
textStyle: { color: theme.colors.btnFont }
|
|
110
|
-
}}
|
|
111
106
|
/>
|
|
112
107
|
{
|
|
113
108
|
items.length > 0 && (
|
|
@@ -131,7 +131,6 @@ const PaymentOptionStripeUI = (props: any) => {
|
|
|
131
131
|
bgColor={theme.colors.backgroundGray}
|
|
132
132
|
borderColor={theme.colors.backgroundGray}
|
|
133
133
|
style={styles.btnAddStyle}
|
|
134
|
-
textStyle={{ color: 'white' }}
|
|
135
134
|
imgRightSrc={null}
|
|
136
135
|
onClick={() => setAddCardOpen(true)}
|
|
137
136
|
/>
|
|
@@ -141,7 +140,6 @@ const PaymentOptionStripeUI = (props: any) => {
|
|
|
141
140
|
text={t('CANCEL', 'Cancel')}
|
|
142
141
|
bgColor={theme.colors.backgroundGray}
|
|
143
142
|
borderColor={theme.colors.backgroundGray}
|
|
144
|
-
textStyle={{ color: 'white' }}
|
|
145
143
|
style={styles.btnAction}
|
|
146
144
|
imgRightSrc={null}
|
|
147
145
|
onClick={() => onCancel()}
|
|
@@ -150,9 +148,6 @@ const PaymentOptionStripeUI = (props: any) => {
|
|
|
150
148
|
<View style={{ width: '48%' }}>
|
|
151
149
|
<OButton
|
|
152
150
|
text={t('ACCEPT', 'Accept')}
|
|
153
|
-
bgColor={theme.colors.primary}
|
|
154
|
-
borderColor={theme.colors.primary}
|
|
155
|
-
textStyle={{ color: 'white' }}
|
|
156
151
|
style={styles.btnAction}
|
|
157
152
|
imgRightSrc={null}
|
|
158
153
|
isDisabled={!cardSelected || cardsList?.cards?.length === 0}
|
|
@@ -326,7 +326,6 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
326
326
|
<OButton
|
|
327
327
|
text={t('ADD_PAYMENT_CARD', 'Add New Payment Card')}
|
|
328
328
|
bgColor={theme.colors.white}
|
|
329
|
-
borderColor={theme.colors.primary}
|
|
330
329
|
style={styles.btnAddStyle}
|
|
331
330
|
textStyle={{ color: theme.colors.primary, fontSize: 12 }}
|
|
332
331
|
imgRightSrc={null}
|
|
@@ -426,7 +425,6 @@ const PaymentOptionsUI = (props: any) => {
|
|
|
426
425
|
<OButton
|
|
427
426
|
text={t('ADD_PAYMENT_CARD', 'Add New Payment Card')}
|
|
428
427
|
bgColor={theme.colors.white}
|
|
429
|
-
borderColor={theme.colors.primary}
|
|
430
428
|
style={styles.btnAddStyle}
|
|
431
429
|
textStyle={{ color: theme.colors.primary, fontSize: 12 }}
|
|
432
430
|
imgRightSrc={null}
|
|
@@ -236,9 +236,7 @@ const PlaceSpotUI = (props: PlaceSpotParams) => {
|
|
|
236
236
|
<View style={{ alignItems: 'flex-start' }}>
|
|
237
237
|
<OButton
|
|
238
238
|
onClick={() => onChangeSpot()}
|
|
239
|
-
|
|
240
|
-
borderColor={theme.colors.primary}
|
|
241
|
-
textStyle={{ color: 'white', fontSize: 12 }}
|
|
239
|
+
textStyle={{ fontSize: 12 }}
|
|
242
240
|
imgRightSrc={null}
|
|
243
241
|
text={t('UPDATE_SPOT_NUMBER', 'Update')}
|
|
244
242
|
isDisabled={(!spotNumber && !Object.values(vehicle).every(e => e))}
|
|
@@ -27,7 +27,7 @@ export const PreviousOrders = (props: PreviousOrdersParams) => {
|
|
|
27
27
|
|
|
28
28
|
const [, t] = useLanguage();
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
const pastOrders = [1, 2, 5, 6, 10, 11, 12, 15, 16, 17]
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<View style={{ marginBottom: 30 }}>
|
|
@@ -49,9 +49,6 @@ export const PreviousOrders = (props: PreviousOrdersParams) => {
|
|
|
49
49
|
onClick={loadMoreOrders}
|
|
50
50
|
text={t('LOAD_MORE_ORDERS', 'Load more orders')}
|
|
51
51
|
imgRightSrc={null}
|
|
52
|
-
bgColor={theme.colors.primary}
|
|
53
|
-
borderColor={theme.colors.primary}
|
|
54
|
-
textStyle={{ color: theme.colors.white }}
|
|
55
52
|
style={{ borderRadius: 7.6, shadowOpacity: 0, marginTop: 20 }}
|
|
56
53
|
/>
|
|
57
54
|
</WrappButton>
|
|
@@ -59,11 +59,11 @@ export const ActionButton = (props: any) => {
|
|
|
59
59
|
}`}
|
|
60
60
|
isDisabled={isSoldOut || maxProductQuantity <= 0 || (product?.minimum_per_order && ((productCart?.quantity + productAddedToCartLength) < product?.minimum_per_order)) || (product?.maximum_per_order && ((productCart?.quantity + productAddedToCartLength) > product?.maximum_per_order))}
|
|
61
61
|
textStyle={{
|
|
62
|
-
color:
|
|
62
|
+
color: theme.colors.white,
|
|
63
63
|
fontSize: orderState.loading || editMode ? 10 : 14
|
|
64
64
|
}}
|
|
65
65
|
bgColor={buttonColor ? theme.colors.lightGray : theme.colors.primary}
|
|
66
|
-
borderColor={
|
|
66
|
+
borderColor={buttonColor ? theme.colors.lightGray : theme.colors.primary}
|
|
67
67
|
style={{
|
|
68
68
|
opacity: saveErrors || isSoldOut || maxProductQuantity <= 0 ? 0.3 : 1,
|
|
69
69
|
borderRadius: 7.6,
|
|
@@ -96,10 +96,9 @@ export const ActionButton = (props: any) => {
|
|
|
96
96
|
: t('LOGIN_SIGNUP', 'Login / Sign Up')
|
|
97
97
|
}
|
|
98
98
|
imgRightSrc=""
|
|
99
|
-
textStyle={{
|
|
99
|
+
textStyle={{ fontSize: 13, textAlign: 'center', color: theme.colors.primary }}
|
|
100
100
|
style={{
|
|
101
101
|
height: 42,
|
|
102
|
-
borderColor: theme.colors.primary,
|
|
103
102
|
backgroundColor: theme.colors.white,
|
|
104
103
|
paddingLeft: 0,
|
|
105
104
|
paddingRight: 0
|
|
@@ -233,7 +233,7 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
|
|
|
233
233
|
<CalendarWrapper>
|
|
234
234
|
{(timeList?.length > 0 && isEnabled) ? (
|
|
235
235
|
<SelectDropdown
|
|
236
|
-
ref={dropdownRef}
|
|
236
|
+
ref={dropdownRef}
|
|
237
237
|
data={timeList}
|
|
238
238
|
onSelect={(selectedItem, index) => {
|
|
239
239
|
console.log(selectedItem.value)
|
|
@@ -244,7 +244,7 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
|
|
|
244
244
|
rowTextForSelection={(item, index) => {
|
|
245
245
|
return item.text
|
|
246
246
|
}}
|
|
247
|
-
buttonStyle={{borderRadius: 7.6, ...styles.selectOption}}
|
|
247
|
+
buttonStyle={{ borderRadius: 7.6, ...styles.selectOption }}
|
|
248
248
|
buttonTextStyle={{
|
|
249
249
|
color: theme.colors.disabled,
|
|
250
250
|
fontSize: 14,
|
|
@@ -267,7 +267,7 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
|
|
|
267
267
|
}}
|
|
268
268
|
renderCustomizedRowChild={(item, index) => {
|
|
269
269
|
return (
|
|
270
|
-
<Text style={[styles.dropDownRow, { color: isBusyTime(professional, getMomentTime(item.value)) ? theme.colors.lightGray : theme.colors.primary }
|
|
270
|
+
<Text style={[styles.dropDownRow, { color: isBusyTime(professional, getMomentTime(item.value)) ? theme.colors.lightGray : theme.colors.primary }]}>
|
|
271
271
|
{item.text}
|
|
272
272
|
</Text>
|
|
273
273
|
)
|
|
@@ -326,11 +326,10 @@ export const ProfessionalProfile = (props: ProfessionalProfileParams) => {
|
|
|
326
326
|
</ScheduleWrapper>
|
|
327
327
|
<ButtonWrapper>
|
|
328
328
|
<OButton
|
|
329
|
-
bgColor={theme.colors.primary}
|
|
330
329
|
onClick={() => handleSelectProfessional()}
|
|
331
330
|
text={t('BOOK', 'Book')}
|
|
332
331
|
style={styles.buttonStyle}
|
|
333
|
-
textStyle={{ fontSize: 14
|
|
332
|
+
textStyle={{ fontSize: 14 }}
|
|
334
333
|
/>
|
|
335
334
|
</ButtonWrapper>
|
|
336
335
|
</Container>
|
|
@@ -113,11 +113,6 @@ const PromotionsUI = (props: PromotionParams) => {
|
|
|
113
113
|
paddingTop={Platform.OS === 'ios' ? 20 : 10}
|
|
114
114
|
style={{ paddingVertical: 0 }}
|
|
115
115
|
btnStyle={{ paddingLeft: 0 }}
|
|
116
|
-
buttonProps={{
|
|
117
|
-
bgColor: theme.colors.white,
|
|
118
|
-
borderColor: theme.colors.white,
|
|
119
|
-
textStyle: { color: theme.colors.btnFont }
|
|
120
|
-
}}
|
|
121
116
|
/>
|
|
122
117
|
<PromotionsContainer>
|
|
123
118
|
<SearchBarContainer>
|
|
@@ -176,7 +171,7 @@ const PromotionsUI = (props: PromotionParams) => {
|
|
|
176
171
|
onClick={() => handleClickOffer(offer)}
|
|
177
172
|
text={t('VIEW', 'View')}
|
|
178
173
|
style={styles.buttonStyle}
|
|
179
|
-
textStyle={{ fontSize: 14,
|
|
174
|
+
textStyle={{ fontSize: 14, flexWrap: 'nowrap' }}
|
|
180
175
|
/>
|
|
181
176
|
</WrapperSingleOffer>
|
|
182
177
|
))}
|
|
@@ -240,7 +235,7 @@ const PromotionsUI = (props: PromotionParams) => {
|
|
|
240
235
|
onClick={() => handleBusinessClick(business)}
|
|
241
236
|
text={t('GO_TO_BUSINESSS', 'Go to business')}
|
|
242
237
|
style={styles.modalButtonStyle}
|
|
243
|
-
textStyle={{ fontSize: 10
|
|
238
|
+
textStyle={{ fontSize: 10 }}
|
|
244
239
|
/>
|
|
245
240
|
</BusinessInfo>
|
|
246
241
|
</SingleBusinessOffer>
|
|
@@ -192,11 +192,6 @@ const ReviewDriverUI = (props: ReviewDriverParams) => {
|
|
|
192
192
|
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
193
193
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
194
194
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
195
|
-
buttonProps={{
|
|
196
|
-
bgColor: theme.colors.white,
|
|
197
|
-
borderColor: theme.colors.white,
|
|
198
|
-
textStyle: { color: theme.colors.btnFont }
|
|
199
|
-
}}
|
|
200
195
|
/>
|
|
201
196
|
<DriverPhotoContainer>
|
|
202
197
|
<View
|
|
@@ -298,7 +293,7 @@ const ReviewDriverUI = (props: ReviewDriverParams) => {
|
|
|
298
293
|
<FloatingBottomContainer>
|
|
299
294
|
<ActionContainer>
|
|
300
295
|
<OButton
|
|
301
|
-
textStyle={{
|
|
296
|
+
textStyle={{ paddingRight: 10 }}
|
|
302
297
|
text={t('SEND_REVIEW', 'Send Review')}
|
|
303
298
|
style={{ borderRadius: 8 }}
|
|
304
299
|
imgRightStyle={{ tintColor: theme.colors.white, right: 5, margin: 5 }}
|
|
@@ -215,11 +215,6 @@ export const ReviewOrderUI = (props: ReviewOrderParams) => {
|
|
|
215
215
|
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
216
216
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
217
217
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
218
|
-
buttonProps={{
|
|
219
|
-
bgColor: theme.colors.white,
|
|
220
|
-
borderColor: theme.colors.white,
|
|
221
|
-
textStyle: { color: theme.colors.btnFont }
|
|
222
|
-
}}
|
|
223
218
|
/>
|
|
224
219
|
<BusinessLogo isMulti={order?.business?.length > 1}>
|
|
225
220
|
{typeof order?.logo === 'string' || !order?.logo ? (
|
|
@@ -232,7 +227,7 @@ export const ReviewOrderUI = (props: ReviewOrderParams) => {
|
|
|
232
227
|
</View>
|
|
233
228
|
) : (
|
|
234
229
|
<MultiLogosContainer>
|
|
235
|
-
{order?.logo?.map((logo
|
|
230
|
+
{order?.logo?.map((logo: string, i: number) => (
|
|
236
231
|
<React.Fragment key={logo}>
|
|
237
232
|
<View style={styles.logoWrapper}>
|
|
238
233
|
<OIcon
|
|
@@ -338,7 +333,7 @@ export const ReviewOrderUI = (props: ReviewOrderParams) => {
|
|
|
338
333
|
<OText weight={700} size={18} color={theme.colors.textNormal}>{t('FRONT_VISUALS_SKIP', 'Skip')}</OText>
|
|
339
334
|
</SkipButton>
|
|
340
335
|
<OButton
|
|
341
|
-
textStyle={{
|
|
336
|
+
textStyle={{ paddingRight: 10 }}
|
|
342
337
|
text={t('CONTINUE', 'Continue')}
|
|
343
338
|
style={{ borderRadius: 8 }}
|
|
344
339
|
imgRightSrc={theme.images.general.arrow_right}
|
|
@@ -73,11 +73,6 @@ const ReviewProductsUI = (props: ReviewProductParams) => {
|
|
|
73
73
|
style={{ flexDirection: 'column', alignItems: 'flex-start' }}
|
|
74
74
|
titleWrapStyle={{ paddingHorizontal: 0 }}
|
|
75
75
|
titleStyle={{ marginRight: 0, marginLeft: 0 }}
|
|
76
|
-
buttonProps={{
|
|
77
|
-
bgColor: theme.colors.white,
|
|
78
|
-
borderColor: theme.colors.white,
|
|
79
|
-
textStyle: { color: theme.colors.btnFont }
|
|
80
|
-
}}
|
|
81
76
|
/>
|
|
82
77
|
{order?.products && order.products.length > 0 && order?.products.map(productsOrder => (
|
|
83
78
|
productsOrder?.length ? productsOrder?.map((product: any, i: any) => !product?.deleted ?
|
|
@@ -109,7 +104,7 @@ const ReviewProductsUI = (props: ReviewProductParams) => {
|
|
|
109
104
|
<OText weight={700} size={18} color={theme.colors.textNormal}>{t('FRONT_VISUALS_SKIP', 'Skip')}</OText>
|
|
110
105
|
</SkipButton>
|
|
111
106
|
<OButton
|
|
112
|
-
textStyle={{
|
|
107
|
+
textStyle={{ paddingRight: 10 }}
|
|
113
108
|
text={order?.driver && !order?.user_review ? t('CONTINUE', 'Continue') : t('SEND_REVIEW', 'Send Review')}
|
|
114
109
|
style={{ borderRadius: 8 }}
|
|
115
110
|
imgRightSrc={theme.images.general.arrow_right}
|
|
@@ -90,7 +90,7 @@ export const ReviewTrigger = (props: any) => {
|
|
|
90
90
|
</View>
|
|
91
91
|
) : (
|
|
92
92
|
<MultiLogosContainer>
|
|
93
|
-
{order?.logo?.map((logo
|
|
93
|
+
{order?.logo?.map((logo: string, i: number) => (
|
|
94
94
|
<React.Fragment key={logo}>
|
|
95
95
|
<View style={styles.logoWrapper}>
|
|
96
96
|
<OIcon
|
|
@@ -122,7 +122,7 @@ export const ReviewTrigger = (props: any) => {
|
|
|
122
122
|
<FloatingBottomContainer borderTopWidth={0} borderRadius={10}>
|
|
123
123
|
<ActionContainer>
|
|
124
124
|
<OButton
|
|
125
|
-
textStyle={{
|
|
125
|
+
textStyle={{ paddingRight: 10 }}
|
|
126
126
|
text={t('GOTO_REVIEW', 'Go to review')}
|
|
127
127
|
style={{ borderRadius: 8 }}
|
|
128
128
|
imgRightSrc={theme.images.general.arrow_right}
|