ordering-ui-react-native 0.15.32 → 0.15.33
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/kiosk/src/components/Cart/index.tsx +1 -1
- package/themes/kiosk/src/components/CartBottomSheet/index.tsx +1 -1
- package/themes/kiosk/src/components/CartBottomSheet/styles.tsx +1 -1
- package/themes/kiosk/src/components/CartContent/index.tsx +13 -3
- package/themes/kiosk/src/components/CartItem/index.tsx +20 -8
- package/themes/kiosk/src/components/CustomerName/index.tsx +7 -2
- package/themes/kiosk/src/components/Intro/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderDetails/index.tsx +2 -2
- package/themes/kiosk/src/components/OrderSummary/index.tsx +1 -1
- package/themes/kiosk/src/components/ProductForm/index.tsx +172 -123
- package/themes/kiosk/src/components/ProductForm/styles.tsx +1 -1
- package/themes/kiosk/src/components/ProductOption/index.tsx +1 -0
- package/themes/kiosk/src/components/ProductOption/styles.tsx +1 -0
package/package.json
CHANGED
|
@@ -379,7 +379,7 @@ const CartUI = (props: any) => {
|
|
|
379
379
|
<ProductForm
|
|
380
380
|
productCart={curProduct}
|
|
381
381
|
businessSlug={cart?.business?.slug}
|
|
382
|
-
businessId={
|
|
382
|
+
businessId={cart?.business_id}
|
|
383
383
|
categoryId={curProduct?.category_id}
|
|
384
384
|
productId={curProduct?.id}
|
|
385
385
|
onSave={handlerProductAction}
|
|
@@ -179,7 +179,7 @@ const CartBottomSheetUI = (props: CartBottomSheetUIProps): React.ReactElement |
|
|
|
179
179
|
<ProductForm
|
|
180
180
|
productCart={curProduct}
|
|
181
181
|
businessSlug={cart?.business?.slug}
|
|
182
|
-
businessId={
|
|
182
|
+
businessId={cart?.business_id}
|
|
183
183
|
categoryId={curProduct?.category_id}
|
|
184
184
|
productId={curProduct?.id}
|
|
185
185
|
onSave={handlerProductAction}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { useLanguage } from 'ordering-components/native';
|
|
3
|
-
|
|
3
|
+
import { useCartBottomSheet } from '../../providers/CartBottomSheetProvider';
|
|
4
4
|
import { CCNotCarts } from './styles';
|
|
5
5
|
|
|
6
6
|
import { Cart } from '../Cart';
|
|
@@ -22,6 +22,7 @@ export const CartContent = (props: any) => {
|
|
|
22
22
|
|
|
23
23
|
const [, t] = useLanguage()
|
|
24
24
|
const [isCartsLoading, setIsCartsLoading] = useState(false)
|
|
25
|
+
const [, { hideCartBottomSheet }] = useCartBottomSheet();
|
|
25
26
|
|
|
26
27
|
const cartProps = {
|
|
27
28
|
navigation,
|
|
@@ -33,6 +34,15 @@ export const CartContent = (props: any) => {
|
|
|
33
34
|
resetInactivityTimeout,
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (!cart && showNotFound) {
|
|
39
|
+
navigation?.canGoBack()
|
|
40
|
+
? navigation.goBack()
|
|
41
|
+
: props.onNavigationRedirect && props.onNavigationRedirect('Business')
|
|
42
|
+
hideCartBottomSheet()
|
|
43
|
+
}
|
|
44
|
+
}, [cart])
|
|
45
|
+
|
|
36
46
|
const content = (
|
|
37
47
|
<>
|
|
38
48
|
{(isOrderStateCarts && cart) && (
|
|
@@ -46,13 +56,13 @@ export const CartContent = (props: any) => {
|
|
|
46
56
|
}
|
|
47
57
|
</>
|
|
48
58
|
)}
|
|
49
|
-
{(!cart && showNotFound) && (
|
|
59
|
+
{/* {(!cart && showNotFound) && (
|
|
50
60
|
<CCNotCarts>
|
|
51
61
|
<OText size={24} style={{ textAlign: 'center' }}>
|
|
52
62
|
{t('CARTS_NOT_FOUND', 'You don\'t have carts available')}
|
|
53
63
|
</OText>
|
|
54
64
|
</CCNotCarts>
|
|
55
|
-
)}
|
|
65
|
+
)} */}
|
|
56
66
|
<Spinner visible={isCartsLoading} />
|
|
57
67
|
</>
|
|
58
68
|
)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { View, Animated, TouchableOpacity } from 'react-native';
|
|
2
|
+
import { View, Animated, TouchableOpacity, ImageBackground } from 'react-native';
|
|
3
3
|
import { useLanguage, useUtils } from 'ordering-components/native';
|
|
4
|
+
import FastImage from 'react-native-fast-image'
|
|
4
5
|
|
|
5
6
|
import {
|
|
6
7
|
StyledCartItem,
|
|
@@ -70,13 +71,24 @@ const CartItem = (props: CartItemProps) => {
|
|
|
70
71
|
>
|
|
71
72
|
<StyledCartItem>
|
|
72
73
|
<View style={{ flexDirection: 'row' }}>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
{product?.images ? (
|
|
75
|
+
<FastImage
|
|
76
|
+
style={{ height: 60, width: 80, borderRadius: 6 }}
|
|
77
|
+
source={{
|
|
78
|
+
uri: product?.images,
|
|
79
|
+
priority: FastImage.priority.normal,
|
|
80
|
+
// cache:FastImage.cacheControl.web
|
|
81
|
+
}}
|
|
82
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
83
|
+
/>
|
|
84
|
+
) : (
|
|
85
|
+
<ImageBackground
|
|
86
|
+
style={{ height: 60, width: 80, borderRadius: 6 }}
|
|
87
|
+
source={theme.images.dummies.product}
|
|
88
|
+
imageStyle={{ borderRadius: 6 }}
|
|
89
|
+
resizeMode='cover'
|
|
90
|
+
/>
|
|
91
|
+
)}
|
|
80
92
|
|
|
81
93
|
<View style={{ flexDirection: 'column', justifyContent: 'space-evenly', marginHorizontal: 15, marginTop: 10 }}>
|
|
82
94
|
<View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { useLanguage, ToastType, useToast } from 'ordering-components/native';
|
|
3
|
-
import { _setStoreData } from '../../../../../src/providers/StoreUtil';
|
|
3
|
+
import { _setStoreData, _removeStoreData } from '../../../../../src/providers/StoreUtil';
|
|
4
4
|
|
|
5
5
|
import { OButton, OInput, OText } from '../shared';
|
|
6
6
|
import { useForm, Controller } from 'react-hook-form';
|
|
@@ -28,6 +28,11 @@ const CustomerName = (props: Props): React.ReactElement => {
|
|
|
28
28
|
onProceedToPay()
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
const onSkip = () => {
|
|
32
|
+
_removeStoreData('customer_name')
|
|
33
|
+
onProceedToPay()
|
|
34
|
+
}
|
|
35
|
+
|
|
31
36
|
const styles = StyleSheet.create({
|
|
32
37
|
inputStyle: {
|
|
33
38
|
borderRadius: 4,
|
|
@@ -75,7 +80,7 @@ const CustomerName = (props: Props): React.ReactElement => {
|
|
|
75
80
|
<View style={{ flex: 1, alignItems: 'center' }}>
|
|
76
81
|
<OButton
|
|
77
82
|
text={t('SKIP', 'Skip')}
|
|
78
|
-
onClick={
|
|
83
|
+
onClick={onSkip}
|
|
79
84
|
textStyle={{ color: theme.colors.primary, fontSize: 20 }}
|
|
80
85
|
parentStyle={{
|
|
81
86
|
height: orientationState?.orientation === PORTRAIT
|
|
@@ -212,7 +212,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
212
212
|
setCustomerName(name)
|
|
213
213
|
} catch (e) {
|
|
214
214
|
if (e) {
|
|
215
|
-
setCustomerName(
|
|
215
|
+
setCustomerName(null)
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -553,7 +553,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
553
553
|
size={orientationState?.dimensions?.width * 0.048}
|
|
554
554
|
weight="700"
|
|
555
555
|
>
|
|
556
|
-
{
|
|
556
|
+
{t('HUNGRY', 'hungry')}{!!customerName && `, ${customerName}`}
|
|
557
557
|
</OText>
|
|
558
558
|
</OText>
|
|
559
559
|
|
|
@@ -169,7 +169,7 @@ const OrderSummaryUI = (props: any) => {
|
|
|
169
169
|
isCartProduct
|
|
170
170
|
productCart={curProduct}
|
|
171
171
|
businessSlug={cart?.business?.slug}
|
|
172
|
-
businessId={
|
|
172
|
+
businessId={cart?.business_id}
|
|
173
173
|
categoryId={curProduct?.category_id}
|
|
174
174
|
productId={curProduct?.id}
|
|
175
175
|
onSave={handlerProductAction}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
+
import FastImage from 'react-native-fast-image'
|
|
2
3
|
import {
|
|
3
4
|
View,
|
|
4
5
|
TouchableOpacity,
|
|
@@ -69,7 +70,7 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
69
70
|
|
|
70
71
|
const { product, loading, error } = productObject;
|
|
71
72
|
|
|
72
|
-
const HEADER_EXPANDED_HEIGHT =
|
|
73
|
+
const HEADER_EXPANDED_HEIGHT = orientationState?.dimensions?.height * 0.4;
|
|
73
74
|
const HEADER_COLLAPSED_HEIGHT = orientationState?.dimensions?.height * 0.2;
|
|
74
75
|
|
|
75
76
|
const isError = (id: number) => {
|
|
@@ -203,7 +204,6 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
203
204
|
},
|
|
204
205
|
scrollContainer: {
|
|
205
206
|
padding: 16,
|
|
206
|
-
paddingTop: HEADER_EXPANDED_HEIGHT
|
|
207
207
|
},
|
|
208
208
|
header: {
|
|
209
209
|
backgroundColor: '#fff',
|
|
@@ -225,6 +225,10 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
225
225
|
shadowOpacity: 0.4,
|
|
226
226
|
shadowRadius: 3,
|
|
227
227
|
elevation: 5,
|
|
228
|
+
},
|
|
229
|
+
imageStyle: {
|
|
230
|
+
width: '100%',
|
|
231
|
+
height: HEADER_EXPANDED_HEIGHT,
|
|
228
232
|
}
|
|
229
233
|
});
|
|
230
234
|
|
|
@@ -232,118 +236,173 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
232
236
|
<>
|
|
233
237
|
<ScrollView
|
|
234
238
|
style={styles.mainContainer}
|
|
235
|
-
contentContainerStyle={styles.scrollContainer}
|
|
236
239
|
onScroll={Animated.event(
|
|
237
240
|
[{ nativeEvent: { contentOffset: { y: scrollY } } }],
|
|
238
241
|
{ useNativeDriver: false })
|
|
239
242
|
}
|
|
240
243
|
scrollEventThrottle={16}
|
|
241
244
|
>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
245
|
+
{!isDrawer ? (
|
|
246
|
+
<Animated.View style={[styles.header, { height: headerHeight }]}>
|
|
247
|
+
{!isDrawer && (
|
|
248
|
+
<Animated.View style={{ opacity: navBar1ContainerOpacity }}>
|
|
249
|
+
<NavBar
|
|
250
|
+
{...navBarProps}
|
|
251
|
+
titleColor={theme.colors.white}
|
|
252
|
+
btnStyle={{
|
|
253
|
+
width: 55,
|
|
254
|
+
height: 55,
|
|
255
|
+
overflow: 'scroll',
|
|
256
|
+
backgroundColor: 'black',
|
|
257
|
+
borderRadius: 100,
|
|
258
|
+
color: 'white',
|
|
259
|
+
opacity: 0.8,
|
|
260
|
+
left: 20,
|
|
261
|
+
}}
|
|
262
|
+
/>
|
|
263
|
+
</Animated.View>
|
|
264
|
+
)}
|
|
265
|
+
<Animated.View style={{ opacity: navBar2ContainerOpacity, position: 'absolute' }}>
|
|
266
|
+
<NavBar
|
|
267
|
+
{...navBarProps}
|
|
268
|
+
btnStyle={{
|
|
269
|
+
width: 55,
|
|
270
|
+
height: 55,
|
|
271
|
+
backgroundColor: 'transparent',
|
|
272
|
+
borderRadius: 100,
|
|
273
|
+
left: 20,
|
|
274
|
+
}}
|
|
275
|
+
/>
|
|
276
|
+
</Animated.View>
|
|
272
277
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
278
|
+
<Animated.View style={{
|
|
279
|
+
backgroundColor: 'white',
|
|
280
|
+
width: orientationState?.dimensions?.width,
|
|
281
|
+
opacity: collapsedBarContainerOpacity,
|
|
282
|
+
}}>
|
|
283
|
+
<View
|
|
284
|
+
style={{
|
|
285
|
+
flexDirection: 'row',
|
|
286
|
+
alignItems: 'center',
|
|
287
|
+
padding: 20,
|
|
288
|
+
paddingTop: 0,
|
|
289
|
+
paddingBottom: 10
|
|
290
|
+
}}
|
|
291
|
+
>
|
|
292
|
+
{product?.images ? (
|
|
293
|
+
<FastImage
|
|
294
|
+
style={{ height: 70, width: 70, borderRadius: 6 }}
|
|
295
|
+
source={{
|
|
296
|
+
uri: product?.images,
|
|
297
|
+
priority: FastImage.priority.normal,
|
|
298
|
+
// cache:FastImage.cacheControl.web
|
|
299
|
+
}}
|
|
300
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
301
|
+
/>
|
|
302
|
+
) : (
|
|
303
|
+
<ImageBackground
|
|
304
|
+
style={{ height: 70, width: 70, borderRadius: 6 }}
|
|
305
|
+
source={theme.images.dummies.product}
|
|
306
|
+
imageStyle={{ borderRadius: 6 }}
|
|
307
|
+
resizeMode='cover'
|
|
308
|
+
/>
|
|
309
|
+
)}
|
|
310
|
+
<OText
|
|
311
|
+
size={orientationState?.dimensions?.width * 0.025}
|
|
312
|
+
weight="bold"
|
|
313
|
+
mLeft={20}
|
|
314
|
+
numberOfLines={2}
|
|
315
|
+
>
|
|
316
|
+
{product?.name}
|
|
317
|
+
</OText>
|
|
318
|
+
</View>
|
|
319
|
+
<View
|
|
320
|
+
style={{
|
|
321
|
+
position: 'absolute',
|
|
322
|
+
bottom: -2,
|
|
323
|
+
height: 1,
|
|
324
|
+
backgroundColor: 'white',
|
|
325
|
+
width: orientationState?.dimensions?.width,
|
|
326
|
+
...styles.shadow,
|
|
327
|
+
}}
|
|
293
328
|
/>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
329
|
+
</Animated.View>
|
|
330
|
+
|
|
331
|
+
<Animated.View style={{
|
|
332
|
+
opacity: heroContainerOpacity,
|
|
333
|
+
position: 'absolute',
|
|
334
|
+
zIndex: -100,
|
|
335
|
+
transform: [{ translateY: heroTranslateY }],
|
|
336
|
+
}}>
|
|
337
|
+
<View
|
|
338
|
+
style={{
|
|
339
|
+
width: orientationState?.dimensions?.width,
|
|
340
|
+
height: HEADER_EXPANDED_HEIGHT,
|
|
341
|
+
position: 'absolute',
|
|
342
|
+
zIndex: 1,
|
|
343
|
+
backgroundColor: 'rgba(24, 28, 50, 0.4)',
|
|
344
|
+
}}
|
|
299
345
|
>
|
|
300
|
-
{product?.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
346
|
+
{product?.images ? (
|
|
347
|
+
<FastImage
|
|
348
|
+
style={{ flex: 1, justifyContent: 'center' }}
|
|
349
|
+
source={{
|
|
350
|
+
uri: product?.images,
|
|
351
|
+
priority: FastImage.priority.normal,
|
|
352
|
+
// cache:FastImage.cacheControl.web
|
|
353
|
+
}}
|
|
354
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
355
|
+
/>
|
|
356
|
+
) : (
|
|
357
|
+
<ImageBackground
|
|
358
|
+
style={{ flex: 1, justifyContent: 'center' }}
|
|
359
|
+
source={theme.images.dummies.product}
|
|
360
|
+
resizeMode='cover'
|
|
361
|
+
/>
|
|
362
|
+
)}
|
|
363
|
+
</View>
|
|
364
|
+
</Animated.View>
|
|
313
365
|
</Animated.View>
|
|
314
|
-
|
|
315
|
-
<
|
|
316
|
-
|
|
317
|
-
position: 'absolute',
|
|
318
|
-
zIndex: -100,
|
|
319
|
-
transform: [{ translateY: heroTranslateY }],
|
|
320
|
-
}}>
|
|
321
|
-
<View
|
|
366
|
+
) : (
|
|
367
|
+
<View style={{...styles.imageStyle}}>
|
|
368
|
+
<Animated.View
|
|
322
369
|
style={{
|
|
323
|
-
|
|
324
|
-
|
|
370
|
+
...styles.imageStyle,
|
|
371
|
+
opacity: heroContainerOpacity,
|
|
325
372
|
position: 'absolute',
|
|
326
|
-
zIndex:
|
|
327
|
-
|
|
373
|
+
zIndex: -100,
|
|
374
|
+
transform: [{ translateY: heroTranslateY }],
|
|
328
375
|
}}
|
|
329
376
|
>
|
|
330
|
-
<
|
|
377
|
+
<View style={styles.imageStyle}>
|
|
378
|
+
{product?.images ? (
|
|
379
|
+
<FastImage
|
|
380
|
+
style={{ flex: 1 }}
|
|
381
|
+
source={{
|
|
382
|
+
uri: product?.images,
|
|
383
|
+
priority: FastImage.priority.normal,
|
|
384
|
+
// cache:FastImage.cacheControl.web
|
|
385
|
+
}}
|
|
386
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
387
|
+
/>
|
|
388
|
+
) : (
|
|
389
|
+
<ImageBackground
|
|
390
|
+
style={{ flex: 1, justifyContent: 'center' }}
|
|
391
|
+
source={theme.images.dummies.product}
|
|
392
|
+
resizeMode='cover'
|
|
393
|
+
/>
|
|
394
|
+
)}
|
|
395
|
+
</View>
|
|
396
|
+
</Animated.View>
|
|
397
|
+
</View>
|
|
398
|
+
)}
|
|
331
399
|
|
|
332
|
-
</View>
|
|
333
400
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
width: orientationState?.dimensions?.width * 0.75,
|
|
338
|
-
height: HEADER_EXPANDED_HEIGHT / 2,
|
|
339
|
-
position: 'relative',
|
|
340
|
-
top: HEADER_EXPANDED_HEIGHT / 3,
|
|
341
|
-
zIndex: 100,
|
|
342
|
-
padding: 20,
|
|
343
|
-
}}
|
|
344
|
-
>
|
|
401
|
+
{!loading && !error && product && (
|
|
402
|
+
<View style={{ paddingTop: isDrawer ? 20 : HEADER_EXPANDED_HEIGHT, paddingBottom: 80, paddingHorizontal: 16 }}>
|
|
403
|
+
<WrapContent isDrawer={isDrawer}>
|
|
345
404
|
<OText
|
|
346
|
-
|
|
405
|
+
style={{ marginTop: 20 }}
|
|
347
406
|
size={orientationState?.dimensions?.width * 0.038}
|
|
348
407
|
weight="bold"
|
|
349
408
|
mBottom={10}
|
|
@@ -352,33 +411,23 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
352
411
|
{product?.name || productCart?.name}
|
|
353
412
|
</OText>
|
|
354
413
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
414
|
+
{(product?.description || productCart?.description) && (
|
|
415
|
+
<OText
|
|
416
|
+
numberOfLines={4}
|
|
417
|
+
>
|
|
418
|
+
{product?.description || productCart?.description}
|
|
419
|
+
</OText>
|
|
420
|
+
)}
|
|
421
|
+
|
|
422
|
+
{((product?.sku && product?.sku !== '-1' && product?.sku !== '1') ||
|
|
423
|
+
(productCart?.sku && productCart?.sku !== '-1' && productCart?.sku !== '1')
|
|
424
|
+
) && (
|
|
425
|
+
<ProductDescription>
|
|
426
|
+
<OText size={20}>{t('SKU', 'Sku')}</OText>
|
|
427
|
+
<OText>{product?.sku || productCart?.sku}</OText>
|
|
428
|
+
</ProductDescription>
|
|
429
|
+
)}
|
|
364
430
|
|
|
365
|
-
{/* {!isFromCheckout && (
|
|
366
|
-
<Spinner visible={loading} />
|
|
367
|
-
)} */}
|
|
368
|
-
{!loading && !error && product && (
|
|
369
|
-
<View style={{ paddingTop: isDrawer ? 10 : 20, paddingBottom: 80 }}>
|
|
370
|
-
<WrapContent isDrawer={isDrawer}>
|
|
371
|
-
<ProductDescription>
|
|
372
|
-
{(
|
|
373
|
-
(product?.sku && product?.sku !== '-1' && product?.sku !== '1') ||
|
|
374
|
-
(productCart?.sku && productCart?.sku !== '-1' && productCart?.sku !== '1')
|
|
375
|
-
) && (
|
|
376
|
-
<>
|
|
377
|
-
<OText size={20}>{t('SKU', 'Sku')}</OText>
|
|
378
|
-
<OText>{product?.sku || productCart?.sku}</OText>
|
|
379
|
-
</>
|
|
380
|
-
)}
|
|
381
|
-
</ProductDescription>
|
|
382
431
|
<ProductEditions>
|
|
383
432
|
{product?.ingredients.length > 0 && (
|
|
384
433
|
<View style={styles.optionContainer}>
|