ordering-ui-react-native 0.12.7 → 0.12.11
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 -1
- package/src/assets/images/business_list_banner.jpg +0 -0
- package/themes/original/index.tsx +2 -0
- package/themes/original/src/components/BusinessesListing/index.tsx +7 -0
- package/themes/original/src/components/BusinessesListing/styles.tsx +6 -1
- package/themes/original/src/components/OrderProgress/index.tsx +208 -0
- package/themes/original/src/components/OrderProgress/styles.tsx +30 -0
- package/themes/original/src/components/ProductForm/index.tsx +159 -56
- package/themes/original/src/components/ProductForm/styles.tsx +1 -1
- package/themes/single-business/src/components/ActiveOrders/index.tsx +20 -19
- package/themes/single-business/src/components/BusinessProductsListing/index.tsx +4 -4
- package/themes/single-business/src/components/Cart/index.tsx +39 -47
- package/themes/single-business/src/components/Cart/styles.tsx +1 -0
- package/themes/single-business/src/components/LoginForm/index.tsx +147 -89
- package/themes/single-business/src/components/LoginForm/styles.tsx +33 -28
- package/themes/single-business/src/components/OrderDetails/index.tsx +32 -12
- package/themes/single-business/src/components/OrdersOption/index.tsx +50 -50
- package/themes/single-business/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/single-business/src/components/PreviousOrders/index.tsx +97 -83
- package/themes/single-business/src/components/PromotionCard/index.tsx +10 -2
- package/themes/single-business/src/components/Promotions/index.tsx +10 -15
- package/themes/single-business/src/components/ReviewOrder/index.tsx +299 -274
- package/themes/single-business/src/components/ReviewOrder/styles.tsx +23 -26
- package/themes/single-business/src/components/UpsellingProducts/index.tsx +230 -189
- package/themes/single-business/src/components/UpsellingProducts/styles.tsx +24 -18
- package/themes/single-business/src/types/index.tsx +10 -2
|
@@ -1,47 +1,44 @@
|
|
|
1
1
|
import styled from 'styled-components/native'
|
|
2
2
|
|
|
3
|
-
export const ReviewOrderContainer = styled.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
`
|
|
7
|
-
export const ReviewOrderTitle = styled.View`
|
|
8
|
-
|
|
3
|
+
export const ReviewOrderContainer = styled.ScrollView`
|
|
4
|
+
padding: 20px 40px;
|
|
5
|
+
margin-bottom: 100px;
|
|
9
6
|
`
|
|
10
7
|
|
|
11
8
|
export const BusinessLogo = styled.View`
|
|
12
9
|
margin-vertical: 5px;
|
|
13
10
|
align-items: center;
|
|
14
|
-
box-shadow: 0 1px 2px #ddd;
|
|
15
|
-
border-radius: 7.6px;
|
|
16
|
-
margin-bottom: 20px;
|
|
17
11
|
`
|
|
18
12
|
|
|
19
13
|
export const FormReviews = styled.View`
|
|
20
14
|
flex: 1;
|
|
21
15
|
height: 100%;
|
|
16
|
+
margin-top: 30px;
|
|
22
17
|
`
|
|
23
18
|
|
|
24
|
-
export const
|
|
25
|
-
padding: 10px;
|
|
26
|
-
border-width: 1px;
|
|
27
|
-
border-color: ${(props: any) => props.theme.colors.secundaryContrast};
|
|
19
|
+
export const CommentsButtonGroup = styled.View`
|
|
28
20
|
flex-direction: row;
|
|
29
|
-
|
|
30
|
-
margin-vertical: 5px;
|
|
31
|
-
border-radius: 10px;
|
|
21
|
+
flex-wrap: wrap;
|
|
32
22
|
`
|
|
33
23
|
|
|
34
|
-
export const
|
|
24
|
+
export const ActionContainer = styled.View`
|
|
35
25
|
flex-direction: row;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
padding: 3px 10px;
|
|
36
29
|
`
|
|
37
30
|
|
|
38
|
-
export const
|
|
39
|
-
|
|
40
|
-
padding-bottom: 20px;
|
|
41
|
-
`;
|
|
31
|
+
export const SkipButton = styled.TouchableOpacity`
|
|
32
|
+
`
|
|
42
33
|
|
|
43
|
-
export const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
export const RatingBarContainer = styled.View`
|
|
35
|
+
margin-top: 10px;
|
|
36
|
+
margin-bottom: 25px;
|
|
37
|
+
`
|
|
38
|
+
|
|
39
|
+
export const RatingTextContainer = styled.View`
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
margin-top: 10px;
|
|
44
|
+
`
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import Spinner from 'react-native-loading-spinner-overlay';
|
|
3
|
-
import MaterialComIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
4
2
|
import { Platform, SafeAreaView, StyleSheet, TouchableOpacity, View } from 'react-native'
|
|
5
3
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
UpsellingPage as UpsellingPageController,
|
|
5
|
+
useUtils,
|
|
6
|
+
useLanguage,
|
|
9
7
|
} from 'ordering-components/native'
|
|
10
8
|
import { useTheme } from 'styled-components/native';
|
|
11
9
|
import { OText, OIcon, OModal, OBottomPopup, OButton } from '../shared'
|
|
12
10
|
import { UpsellingProductsParams } from '../../types'
|
|
13
11
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
Container,
|
|
13
|
+
UpsellingContainer,
|
|
14
|
+
Item,
|
|
15
|
+
Details,
|
|
16
|
+
AddButton,
|
|
17
|
+
CloseUpselling,
|
|
18
|
+
TopBar,
|
|
19
|
+
TopActions,
|
|
20
|
+
WrapPrice,
|
|
21
|
+
WrapperAdd
|
|
22
22
|
} from './styles'
|
|
23
23
|
import { ProductForm } from '../ProductForm';
|
|
24
24
|
import { OrderSummary } from '../OrderSummary';
|
|
@@ -27,192 +27,233 @@ import NavBar from '../NavBar';
|
|
|
27
27
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
28
28
|
|
|
29
29
|
const UpsellingProductsUI = (props: UpsellingProductsParams) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
const {
|
|
31
|
+
isCustomMode,
|
|
32
|
+
isShowTitle,
|
|
33
|
+
upsellingProducts,
|
|
34
|
+
business,
|
|
35
|
+
cart,
|
|
36
|
+
handleUpsellingPage,
|
|
37
|
+
handleCloseUpsellingPage,
|
|
38
|
+
openUpselling,
|
|
39
|
+
canOpenUpselling,
|
|
40
|
+
setCanOpenUpselling
|
|
41
|
+
} = props
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
const theme = useTheme();
|
|
43
44
|
|
|
45
|
+
const styles = StyleSheet.create({
|
|
46
|
+
imageStyle: {
|
|
47
|
+
width: 73,
|
|
48
|
+
height: 73,
|
|
49
|
+
resizeMode: 'cover',
|
|
50
|
+
borderRadius: 7.6,
|
|
51
|
+
},
|
|
52
|
+
closeUpsellingButton: {
|
|
53
|
+
borderRadius: 7.6,
|
|
54
|
+
borderColor: theme.colors.primary,
|
|
55
|
+
backgroundColor: theme.colors.primary,
|
|
56
|
+
borderWidth: 1,
|
|
57
|
+
height: 44,
|
|
58
|
+
marginBottom: 10,
|
|
59
|
+
shadowOpacity: 0
|
|
60
|
+
},
|
|
61
|
+
cancelBtn: {
|
|
62
|
+
paddingHorizontal: 18,
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
borderRadius: 7.6,
|
|
65
|
+
borderColor: theme.colors.textSecondary,
|
|
66
|
+
height: 38
|
|
67
|
+
}
|
|
68
|
+
})
|
|
44
69
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
borderRadius: 7.6,
|
|
51
|
-
},
|
|
52
|
-
closeUpsellingButton: {
|
|
53
|
-
borderRadius: 7.6,
|
|
54
|
-
borderColor: theme.colors.primary,
|
|
55
|
-
backgroundColor: theme.colors.primary,
|
|
56
|
-
borderWidth: 1,
|
|
57
|
-
height: 44,
|
|
58
|
-
marginBottom: 10,
|
|
59
|
-
shadowOpacity: 0
|
|
60
|
-
},
|
|
61
|
-
cancelBtn: {
|
|
62
|
-
paddingHorizontal: 18,
|
|
63
|
-
borderWidth: 1,
|
|
64
|
-
borderRadius: 7.6,
|
|
65
|
-
borderColor: theme.colors.textSecondary,
|
|
66
|
-
height: 38
|
|
67
|
-
}
|
|
68
|
-
})
|
|
70
|
+
const [actualProduct, setActualProduct] = useState<any>(null)
|
|
71
|
+
const [modalIsOpen, setModalIsOpen] = useState(false)
|
|
72
|
+
const [{ parsePrice, optimizeImage }] = useUtils()
|
|
73
|
+
const [, t] = useLanguage()
|
|
74
|
+
const { bottom } = useSafeAreaInsets()
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (!isCustomMode) {
|
|
78
|
+
if (upsellingProducts?.products?.length && !upsellingProducts.loading) {
|
|
79
|
+
setCanOpenUpselling && setCanOpenUpselling(true)
|
|
80
|
+
}
|
|
81
|
+
if ((!upsellingProducts?.products?.length && !upsellingProducts.loading && !canOpenUpselling && openUpselling) ||
|
|
82
|
+
(!upsellingProducts?.products?.length && !upsellingProducts.loading && openUpselling)) {
|
|
83
|
+
handleUpsellingPage && handleUpsellingPage()
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, [upsellingProducts.loading, upsellingProducts?.products.length])
|
|
75
87
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
if ((!upsellingProducts?.products?.length && !upsellingProducts.loading && !canOpenUpselling && openUpselling) ||
|
|
82
|
-
(!upsellingProducts?.products?.length && !upsellingProducts.loading && openUpselling)) {
|
|
83
|
-
handleUpsellingPage && handleUpsellingPage()
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}, [upsellingProducts.loading, upsellingProducts?.products.length])
|
|
88
|
+
const handleFormProduct = (product: any) => {
|
|
89
|
+
setActualProduct(product)
|
|
90
|
+
setModalIsOpen(true)
|
|
91
|
+
}
|
|
87
92
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
const handleSaveProduct = () => {
|
|
94
|
+
setActualProduct(null)
|
|
95
|
+
setModalIsOpen(false)
|
|
96
|
+
}
|
|
92
97
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
const getProductPriceWithOffers = (product: any) => {
|
|
99
|
+
return product?.in_offer
|
|
100
|
+
? product?.offer_rate_type === 1
|
|
101
|
+
? product?.price - ((product?.price * product?.offer_rate) / 100)
|
|
102
|
+
: product?.offer_rate
|
|
103
|
+
: product?.price
|
|
104
|
+
}
|
|
97
105
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
106
|
+
const UpsellingLayout = () => {
|
|
107
|
+
return (
|
|
108
|
+
<Container>
|
|
109
|
+
{isShowTitle && (
|
|
110
|
+
<OText
|
|
111
|
+
size={16}
|
|
112
|
+
lineHeight={24}
|
|
113
|
+
weight={'500'}
|
|
114
|
+
style={{ marginBottom: 10, marginTop: 0, paddingTop: 0 }}
|
|
115
|
+
>
|
|
116
|
+
{t('WANT_SOMETHING_ELSE', 'Do you want something else?')}
|
|
117
|
+
</OText>
|
|
118
|
+
)}
|
|
119
|
+
<UpsellingContainer
|
|
120
|
+
horizontal
|
|
121
|
+
showsHorizontalScrollIndicator={false}
|
|
122
|
+
>
|
|
123
|
+
{upsellingProducts.products.map((product: any) =>(
|
|
124
|
+
<Item key={product.id}>
|
|
125
|
+
<Details>
|
|
126
|
+
<OText
|
|
127
|
+
size={16}
|
|
128
|
+
numberOfLines={1}
|
|
129
|
+
ellipsizeMode='tail'
|
|
130
|
+
weight='bold'
|
|
131
|
+
>
|
|
132
|
+
{product.name}
|
|
133
|
+
</OText>
|
|
134
|
+
<WrapPrice>
|
|
135
|
+
<OText
|
|
136
|
+
size={14}
|
|
137
|
+
>
|
|
138
|
+
{parsePrice(getProductPriceWithOffers(product))}
|
|
139
|
+
</OText>
|
|
140
|
+
{product?.in_offer && (
|
|
141
|
+
<OText
|
|
142
|
+
size={15}
|
|
143
|
+
color={theme.colors.lightGray}
|
|
144
|
+
style={{
|
|
145
|
+
textDecorationLine: 'line-through',
|
|
146
|
+
textDecorationStyle: 'solid',
|
|
147
|
+
marginLeft: 20
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
150
|
+
{parsePrice(product?.price)}
|
|
151
|
+
</OText>
|
|
152
|
+
)}
|
|
153
|
+
</WrapPrice>
|
|
154
|
+
<AddButton onPress={() => handleFormProduct(product)}>
|
|
155
|
+
<WrapperAdd>
|
|
156
|
+
<OText
|
|
157
|
+
color={theme.colors.primary}
|
|
158
|
+
size={14}
|
|
159
|
+
>
|
|
160
|
+
{t('ADD', 'Add')}
|
|
161
|
+
</OText>
|
|
162
|
+
</WrapperAdd>
|
|
163
|
+
</AddButton>
|
|
164
|
+
</Details>
|
|
165
|
+
<View style={{ width: '30%', justifyContent: 'flex-end', alignItems: 'flex-end' }}>
|
|
166
|
+
<OIcon
|
|
167
|
+
url={optimizeImage(product?.images, 'h_200,c_limit')}
|
|
168
|
+
style={styles.imageStyle}
|
|
169
|
+
/>
|
|
170
|
+
</View>
|
|
171
|
+
</Item>
|
|
172
|
+
))}
|
|
173
|
+
</UpsellingContainer>
|
|
174
|
+
</Container>
|
|
175
|
+
)
|
|
176
|
+
}
|
|
138
177
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
178
|
+
return (
|
|
179
|
+
<>
|
|
180
|
+
{upsellingProducts?.products?.length === 0 ? null : (
|
|
181
|
+
isCustomMode ? (
|
|
182
|
+
<UpsellingLayout />
|
|
183
|
+
) : (
|
|
184
|
+
<>
|
|
185
|
+
{!canOpenUpselling || upsellingProducts?.products?.length === 0 ? null : (
|
|
186
|
+
<>
|
|
187
|
+
{!modalIsOpen && (
|
|
188
|
+
<OBottomPopup
|
|
189
|
+
title={''}
|
|
190
|
+
open={openUpselling}
|
|
191
|
+
onClose={() => handleUpsellingPage()}
|
|
192
|
+
>
|
|
193
|
+
<TopBar style={{ paddingTop: Platform.OS == 'ios' ? 10 : 30 }}>
|
|
194
|
+
<TopActions onPress={() => handleCloseUpsellingPage()}>
|
|
195
|
+
<OIcon src={theme.images.general.arrow_left} width={20} />
|
|
196
|
+
</TopActions>
|
|
197
|
+
{/* <TopActions style={styles.cancelBtn} onPress={() => handleCloseUpsellingPage()}>
|
|
198
|
+
<OText size={12} color={theme.colors.textSecondary}>{t('CANCEL', 'Cancel')}</OText>
|
|
199
|
+
</TopActions> */}
|
|
200
|
+
</TopBar>
|
|
201
|
+
<ScrollView style={{ marginBottom: bottom + (Platform.OS == 'ios' ? 46 : 70) }} showsVerticalScrollIndicator={false}>
|
|
202
|
+
<View style={{ paddingHorizontal: 40 }}>
|
|
203
|
+
<OText size={20} lineHeight={30} weight={600} style={{ marginTop: 10, marginBottom: 17 }}>{t('YOUR_CART', 'Your cart')}</OText>
|
|
204
|
+
<OrderSummary
|
|
205
|
+
cart={cart}
|
|
206
|
+
isCartPending={cart?.status === 2}
|
|
207
|
+
/>
|
|
208
|
+
</View>
|
|
209
|
+
<View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100, marginHorizontal: -40, marginBottom: 23 }} />
|
|
210
|
+
<View style={{ paddingHorizontal: 40, overflow: 'visible' }}>
|
|
211
|
+
<OText size={16} lineHeight={24} weight={'500'}>{t('WANT_SOMETHING_ELSE', 'Do you want something else?')}</OText>
|
|
212
|
+
<UpsellingLayout />
|
|
213
|
+
<CloseUpselling>
|
|
214
|
+
<OButton
|
|
215
|
+
imgRightSrc=''
|
|
216
|
+
text={t('CHECKOUT', 'Checkout')}
|
|
217
|
+
style={styles.closeUpsellingButton}
|
|
218
|
+
textStyle={{ color: theme.colors.white, fontSize: 14 }}
|
|
219
|
+
onClick={() => handleUpsellingPage()}
|
|
220
|
+
/>
|
|
221
|
+
</CloseUpselling>
|
|
222
|
+
</View>
|
|
223
|
+
</ScrollView>
|
|
224
|
+
</OBottomPopup>
|
|
225
|
+
)}
|
|
226
|
+
</>
|
|
227
|
+
)}
|
|
228
|
+
</>
|
|
229
|
+
)
|
|
230
|
+
)}
|
|
231
|
+
<OModal
|
|
232
|
+
open={modalIsOpen}
|
|
233
|
+
onClose={() => setModalIsOpen(false)}
|
|
234
|
+
entireModal
|
|
235
|
+
customClose
|
|
236
|
+
>
|
|
237
|
+
{actualProduct && (
|
|
238
|
+
<ProductForm
|
|
239
|
+
product={actualProduct}
|
|
240
|
+
businessId={actualProduct?.api?.businessId}
|
|
241
|
+
businessSlug={business.slug}
|
|
242
|
+
onSave={() => handleSaveProduct()}
|
|
243
|
+
onClose={() => setModalIsOpen(false)}
|
|
244
|
+
/>
|
|
245
|
+
)}
|
|
246
|
+
</OModal>
|
|
247
|
+
</>
|
|
248
|
+
)
|
|
208
249
|
}
|
|
209
250
|
|
|
210
251
|
export const UpsellingProducts = (props: UpsellingProductsParams) => {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
252
|
+
const upsellingProductsProps = {
|
|
253
|
+
...props,
|
|
254
|
+
UIComponent: UpsellingProductsUI,
|
|
255
|
+
}
|
|
256
|
+
return (
|
|
257
|
+
<UpsellingPageController {...upsellingProductsProps} />
|
|
258
|
+
)
|
|
218
259
|
}
|
|
@@ -1,43 +1,49 @@
|
|
|
1
1
|
import styled from 'styled-components/native'
|
|
2
2
|
|
|
3
3
|
export const Container = styled.View`
|
|
4
|
-
margin: 20px 0;
|
|
5
|
-
margin-start: -40px;
|
|
6
|
-
margin-end: -40px;
|
|
4
|
+
/* margin: 20px 0; */
|
|
7
5
|
`
|
|
8
6
|
export const UpsellingContainer = styled.ScrollView`
|
|
9
|
-
max-height:
|
|
10
|
-
margin-right: 40px;
|
|
7
|
+
max-height: 220px;
|
|
11
8
|
`
|
|
12
9
|
export const Item = styled.View`
|
|
13
10
|
border-width: 1px;
|
|
14
11
|
border-color: ${(props: any) => props.theme.colors.border};
|
|
15
|
-
border-radius:
|
|
12
|
+
border-radius: 10px;
|
|
16
13
|
flex-direction: row;
|
|
17
|
-
|
|
14
|
+
width: 250px;
|
|
15
|
+
align-items: center;
|
|
18
16
|
justify-content: space-between;
|
|
19
17
|
padding: 10px;
|
|
20
|
-
margin-right:
|
|
21
|
-
min-width: 207px;
|
|
22
|
-
max-width: 207px;
|
|
23
|
-
width: 207px;
|
|
18
|
+
margin-right: 15px;
|
|
24
19
|
`
|
|
25
20
|
export const Details = styled.View`
|
|
21
|
+
flex-direction: column;
|
|
26
22
|
align-items: flex-start;
|
|
27
|
-
justify-content:
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
max-width: 69%;
|
|
28
25
|
`
|
|
29
26
|
export const AddButton = styled.TouchableOpacity`
|
|
30
|
-
|
|
31
|
-
background-color: ${(props: any) => props.theme.colors.primaryContrast};
|
|
32
|
-
border-radius: 30px;
|
|
33
|
-
width: 40%;
|
|
34
|
-
align-items: center;
|
|
35
|
-
margin-top: 6px;
|
|
27
|
+
margin-top: 7px;
|
|
36
28
|
`
|
|
37
29
|
export const CloseUpselling = styled.View`
|
|
38
30
|
margin-vertical: 10px;
|
|
39
31
|
width: 100%;
|
|
40
32
|
`
|
|
33
|
+
|
|
34
|
+
export const WrapperAdd = styled.View`
|
|
35
|
+
padding: 6px 20px;
|
|
36
|
+
border-radius: 50px;
|
|
37
|
+
background-color: ${(props: any) => props.theme.colors.primaryContrast};
|
|
38
|
+
`
|
|
39
|
+
|
|
40
|
+
export const WrapPrice = styled.View`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
align-items: center;
|
|
44
|
+
margin-top: 5px;
|
|
45
|
+
`
|
|
46
|
+
|
|
41
47
|
export const TopBar = styled.View`
|
|
42
48
|
flex-direction: row;
|
|
43
49
|
justify-content: space-between;
|
|
@@ -235,6 +235,7 @@ export interface NotFoundSourceParams {
|
|
|
235
235
|
}
|
|
236
236
|
export interface OrdersOptionParams {
|
|
237
237
|
orderList?: any,
|
|
238
|
+
sortOrders?: any,
|
|
238
239
|
activeOrders?: boolean,
|
|
239
240
|
pagination?: any,
|
|
240
241
|
titleContent?: string,
|
|
@@ -285,6 +286,7 @@ export interface OrderDetailsParams {
|
|
|
285
286
|
isFromCheckout?: boolean,
|
|
286
287
|
driverLocation?: any,
|
|
287
288
|
isFromRoot?: any,
|
|
289
|
+
onNavigationRedirect?: any,
|
|
288
290
|
goToBusinessList?: boolean
|
|
289
291
|
}
|
|
290
292
|
export interface ProductItemAccordionParams {
|
|
@@ -300,7 +302,7 @@ export interface ProductItemAccordionParams {
|
|
|
300
302
|
isFromCheckout?: any
|
|
301
303
|
}
|
|
302
304
|
export interface ReviewOrderParams {
|
|
303
|
-
order?:
|
|
305
|
+
order?: any,
|
|
304
306
|
stars?: any,
|
|
305
307
|
handleChangeInput?: any,
|
|
306
308
|
handleChangeRating?: any,
|
|
@@ -308,6 +310,10 @@ export interface ReviewOrderParams {
|
|
|
308
310
|
formState?: any,
|
|
309
311
|
navigation?: any,
|
|
310
312
|
orderComments?: any,
|
|
313
|
+
setStars?: any,
|
|
314
|
+
onNavigationRedirect?: any,
|
|
315
|
+
handleReviewState?: any,
|
|
316
|
+
setIsReviewed?: any,
|
|
311
317
|
}
|
|
312
318
|
export interface MessagesParams {
|
|
313
319
|
type?: string,
|
|
@@ -385,6 +391,7 @@ export interface OrderTypeSelectParams {
|
|
|
385
391
|
}
|
|
386
392
|
export interface UpsellingProductsParams {
|
|
387
393
|
isCustomMode?: boolean;
|
|
394
|
+
isShowTitle?: boolean;
|
|
388
395
|
upsellingProducts?: any;
|
|
389
396
|
business?: any;
|
|
390
397
|
businessId?: number;
|
|
@@ -394,6 +401,7 @@ export interface UpsellingProductsParams {
|
|
|
394
401
|
canOpenUpselling?: boolean;
|
|
395
402
|
setCanOpenUpselling?: (value: any) => void;
|
|
396
403
|
cart?: any;
|
|
404
|
+
handleUpsellingProducts?: any;
|
|
397
405
|
handleCloseUpsellingPage: () => void;
|
|
398
406
|
}
|
|
399
407
|
|
|
@@ -419,4 +427,4 @@ export interface HelpParams {
|
|
|
419
427
|
export interface LastOrdersParams {
|
|
420
428
|
orderList?: any,
|
|
421
429
|
onRedirect?: any,
|
|
422
|
-
}
|
|
430
|
+
}
|