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.
Files changed (26) hide show
  1. package/package.json +2 -1
  2. package/src/assets/images/business_list_banner.jpg +0 -0
  3. package/themes/original/index.tsx +2 -0
  4. package/themes/original/src/components/BusinessesListing/index.tsx +7 -0
  5. package/themes/original/src/components/BusinessesListing/styles.tsx +6 -1
  6. package/themes/original/src/components/OrderProgress/index.tsx +208 -0
  7. package/themes/original/src/components/OrderProgress/styles.tsx +30 -0
  8. package/themes/original/src/components/ProductForm/index.tsx +159 -56
  9. package/themes/original/src/components/ProductForm/styles.tsx +1 -1
  10. package/themes/single-business/src/components/ActiveOrders/index.tsx +20 -19
  11. package/themes/single-business/src/components/BusinessProductsListing/index.tsx +4 -4
  12. package/themes/single-business/src/components/Cart/index.tsx +39 -47
  13. package/themes/single-business/src/components/Cart/styles.tsx +1 -0
  14. package/themes/single-business/src/components/LoginForm/index.tsx +147 -89
  15. package/themes/single-business/src/components/LoginForm/styles.tsx +33 -28
  16. package/themes/single-business/src/components/OrderDetails/index.tsx +32 -12
  17. package/themes/single-business/src/components/OrdersOption/index.tsx +50 -50
  18. package/themes/single-business/src/components/OrdersOption/styles.tsx +1 -1
  19. package/themes/single-business/src/components/PreviousOrders/index.tsx +97 -83
  20. package/themes/single-business/src/components/PromotionCard/index.tsx +10 -2
  21. package/themes/single-business/src/components/Promotions/index.tsx +10 -15
  22. package/themes/single-business/src/components/ReviewOrder/index.tsx +299 -274
  23. package/themes/single-business/src/components/ReviewOrder/styles.tsx +23 -26
  24. package/themes/single-business/src/components/UpsellingProducts/index.tsx +230 -189
  25. package/themes/single-business/src/components/UpsellingProducts/styles.tsx +24 -18
  26. 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.View`
4
- width: 100%;
5
- flex: 1;
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 Category = styled.View`
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
- justify-content: space-between;
30
- margin-vertical: 5px;
31
- border-radius: 10px;
21
+ flex-wrap: wrap;
32
22
  `
33
23
 
34
- export const Stars = styled.View`
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 BlockWrap = styled.View`
39
- margin-vertical: 16px;
40
- padding-bottom: 20px;
41
- `;
31
+ export const SkipButton = styled.TouchableOpacity`
32
+ `
42
33
 
43
- export const CommentItem = styled.TouchableOpacity`
44
- padding: 3px 10px;
45
- border-radius: 20px;
46
- min-height: 24px;
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
- UpsellingPage as UpsellingPageController,
7
- useUtils,
8
- useLanguage,
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
- Container,
15
- UpsellingContainer,
16
- Item,
17
- Details,
18
- AddButton,
19
- CloseUpselling,
20
- TopBar,
21
- TopActions
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
- const {
31
- isCustomMode,
32
- upsellingProducts,
33
- business,
34
- cart,
35
- handleUpsellingPage,
36
- handleCloseUpsellingPage,
37
- openUpselling,
38
- canOpenUpselling,
39
- setCanOpenUpselling
40
- } = props
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
- const theme = useTheme();
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
- 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
- })
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
- const [actualProduct, setActualProduct] = useState<any>(null)
71
- const [modalIsOpen, setModalIsOpen] = useState(false)
72
- const [{ parsePrice }] = useUtils()
73
- const [, t] = useLanguage()
74
- const { bottom } = useSafeAreaInsets()
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
- 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])
88
+ const handleFormProduct = (product: any) => {
89
+ setActualProduct(product)
90
+ setModalIsOpen(true)
91
+ }
87
92
 
88
- const handleFormProduct = (product: any) => {
89
- setActualProduct(product)
90
- setModalIsOpen(true)
91
- }
93
+ const handleSaveProduct = () => {
94
+ setActualProduct(null)
95
+ setModalIsOpen(false)
96
+ }
92
97
 
93
- const handleSaveProduct = () => {
94
- setActualProduct(null)
95
- setModalIsOpen(false)
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
- const UpsellingLayout = () => {
99
- return (
100
- <Container>
101
- <UpsellingContainer
102
- horizontal
103
- showsHorizontalScrollIndicator={false}
104
- contentContainerStyle={{ paddingHorizontal: Platform.OS === 'ios' ? 40 : 0 }}
105
- >
106
- {
107
- !upsellingProducts.loading && (
108
- <>
109
- {
110
- !upsellingProducts.error ? upsellingProducts.products.map((product: any) => (
111
- <Item key={product.id}>
112
- <View style={{ flexBasis: '57%' }}>
113
- <Details>
114
- <OText size={12} lineHeight={18} numberOfLines={1} ellipsizeMode='tail'>{product.name}</OText>
115
- <OText size={12} lineHeight={18} color={theme.colors.textNormal}>{parsePrice(product.price)}</OText>
116
- </Details>
117
- <AddButton onPress={() => handleFormProduct(product)}>
118
- <OText size={10} color={theme.colors.primary}>{t('ADD', 'Add')}</OText>
119
- </AddButton>
120
- </View>
121
- <View style={{}}>
122
- <OIcon url={product.images} style={styles.imageStyle} />
123
- </View>
124
- </Item>
125
- )) : (
126
- <OText>
127
- {upsellingProducts.message}
128
- </OText>
129
- )
130
- }
131
- </>
132
- )
133
- }
134
- </UpsellingContainer>
135
- </Container>
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
- return (
140
- <>
141
- {isCustomMode ? (
142
- <UpsellingLayout />
143
- ) : (
144
- <>
145
- {!canOpenUpselling || upsellingProducts?.products?.length === 0 ? null : (
146
- <>
147
- {!modalIsOpen && (
148
- <OBottomPopup
149
- title={''}
150
- open={openUpselling}
151
- onClose={() => handleUpsellingPage()}
152
- >
153
- <TopBar style={{ paddingTop: Platform.OS == 'ios' ? 10 : 30 }}>
154
- <TopActions onPress={() => handleCloseUpsellingPage()}>
155
- <OIcon src={theme.images.general.arrow_left} width={20} />
156
- </TopActions>
157
- {/* <TopActions style={styles.cancelBtn} onPress={() => handleCloseUpsellingPage()}>
158
- <OText size={12} color={theme.colors.textSecondary}>{t('CANCEL', 'Cancel')}</OText>
159
- </TopActions> */}
160
- </TopBar>
161
- <ScrollView style={{ marginBottom: bottom + (Platform.OS == 'ios' ? 46 : 70) }} showsVerticalScrollIndicator={false}>
162
- <View style={{ paddingHorizontal: 40 }}>
163
- <OText size={20} lineHeight={30} weight={600} style={{ marginTop: 10, marginBottom: 17 }}>{t('YOUR_CART', 'Your cart')}</OText>
164
- <OrderSummary
165
- cart={cart}
166
- isCartPending={cart?.status === 2}
167
- />
168
- </View>
169
- <View style={{ height: 8, backgroundColor: theme.colors.backgroundGray100, marginHorizontal: -40, marginBottom: 23 }} />
170
- <View style={{ paddingHorizontal: 40, overflow: 'visible' }}>
171
- <OText size={16} lineHeight={24} weight={'500'}>{t('WANT_SOMETHING_ELSE', 'Do you want something else?')}</OText>
172
- <UpsellingLayout />
173
- <CloseUpselling>
174
- <OButton
175
- imgRightSrc=''
176
- text={t('CHECKOUT', 'Checkout')}
177
- style={styles.closeUpsellingButton}
178
- textStyle={{ color: theme.colors.white, fontSize: 14 }}
179
- onClick={() => handleUpsellingPage()}
180
- />
181
- </CloseUpselling>
182
- </View>
183
- </ScrollView>
184
- </OBottomPopup>
185
- )}
186
- </>
187
- )}
188
- </>
189
- )}
190
- <OModal
191
- open={modalIsOpen}
192
- onClose={() => setModalIsOpen(false)}
193
- entireModal
194
- customClose
195
- >
196
- {actualProduct && (
197
- <ProductForm
198
- product={actualProduct}
199
- businessId={actualProduct?.api?.businessId}
200
- businessSlug={business.slug}
201
- onSave={() => handleSaveProduct()}
202
- onClose={() => setModalIsOpen(false)}
203
- />
204
- )}
205
- </OModal>
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
- const upsellingProductsProps = {
212
- ...props,
213
- UIComponent: UpsellingProductsUI
214
- }
215
- return (
216
- <UpsellingPageController {...upsellingProductsProps} />
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: 92px;
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: 7.6px;
12
+ border-radius: 10px;
16
13
  flex-direction: row;
17
- align-items: flex-start;
14
+ width: 250px;
15
+ align-items: center;
18
16
  justify-content: space-between;
19
17
  padding: 10px;
20
- margin-right: 12px;
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: center;
23
+ justify-content: flex-start;
24
+ max-width: 69%;
28
25
  `
29
26
  export const AddButton = styled.TouchableOpacity`
30
- padding: 4px 8px;
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?: { orderId: number, businessId: number, logo: string },
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
+ }