ordering-ui-react-native 0.12.28 → 0.12.32
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/themes/business/src/components/DriverMap/index.tsx +38 -20
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -0
- package/themes/business/src/components/OrderDetails/styles.tsx +1 -1
- package/themes/business/src/components/OrdersOption/index.tsx +76 -98
- package/themes/business/src/components/OrdersOption/styles.tsx +1 -0
- package/themes/business/src/components/SearchBar/index.tsx +1 -1
- package/themes/business/src/components/StoresList/index.tsx +21 -5
- package/themes/business/src/types/react-native-map-link/index.d.ts +1 -0
- package/themes/business/src/assets/fonts/Poppins-Bold.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Light.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Medium.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Regular.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/themes/business/src/assets/fonts/Poppins-Thin.ttf +0 -0
- package/themes/business/src/assets/icons/Close.png +0 -0
- package/themes/business/src/assets/icons/arrow_down.png +0 -0
- package/themes/business/src/assets/icons/arrow_left.png +0 -0
- package/themes/business/src/assets/icons/arrow_return_left.png +0 -0
- package/themes/business/src/assets/icons/arrow_right.png +0 -0
- package/themes/business/src/assets/icons/arrow_up.png +0 -0
- package/themes/business/src/assets/icons/attach.png +0 -0
- package/themes/business/src/assets/icons/camera.png +0 -0
- package/themes/business/src/assets/icons/cellphone.png +0 -0
- package/themes/business/src/assets/icons/chevron-down.png +0 -0
- package/themes/business/src/assets/icons/docFile.png +0 -0
- package/themes/business/src/assets/icons/drop_down.png +0 -0
- package/themes/business/src/assets/icons/email.png +0 -0
- package/themes/business/src/assets/icons/image-chat.png +0 -0
- package/themes/business/src/assets/icons/imageFile.png +0 -0
- package/themes/business/src/assets/icons/information.png +0 -0
- package/themes/business/src/assets/icons/logout.png +0 -0
- package/themes/business/src/assets/icons/map.png +0 -0
- package/themes/business/src/assets/icons/messages.png +0 -0
- package/themes/business/src/assets/icons/orders.png +0 -0
- package/themes/business/src/assets/icons/password.png +0 -0
- package/themes/business/src/assets/icons/pdfFile.png +0 -0
- package/themes/business/src/assets/icons/phone.png +0 -0
- package/themes/business/src/assets/icons/profile-default-photo.png +0 -0
- package/themes/business/src/assets/icons/profile.png +0 -0
- package/themes/business/src/assets/icons/reload.png +0 -0
- package/themes/business/src/assets/icons/search.png +0 -0
- package/themes/business/src/assets/icons/stores.png +0 -0
- package/themes/business/src/assets/images/background.png +0 -0
- package/themes/business/src/assets/images/dummies/store.png +0 -0
- package/themes/business/src/assets/images/image.png +0 -0
- package/themes/business/src/assets/images/loading-splash.png +0 -0
- package/themes/business/src/assets/images/logo-long.png +0 -0
- package/themes/business/src/assets/images/logo-white.png +0 -0
- package/themes/business/src/assets/images/logo.png +0 -0
- package/themes/business/src/assets/images/logotype-invert.png +0 -0
- package/themes/business/src/assets/images/logotype.png +0 -0
- package/themes/business/src/assets/images/not-found.png +0 -0
- package/themes/business/src/assets/json/order.json +0 -205
- package/themes/business/src/assets/json/orders.json +0 -3592
- package/themes/uber-eats/src/assets/fonts/Poppins-Bold.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Light.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Medium.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Regular.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/themes/uber-eats/src/assets/fonts/Poppins-Thin.ttf +0 -0
- package/themes/uber-eats/src/assets/icons/add-circular-outlined-button.png +0 -0
- package/themes/uber-eats/src/assets/icons/alert.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_left.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_right.png +0 -0
- package/themes/uber-eats/src/assets/icons/arrow_up.png +0 -0
- package/themes/uber-eats/src/assets/icons/autograph.png +0 -0
- package/themes/uber-eats/src/assets/icons/calendar.png +0 -0
- package/themes/uber-eats/src/assets/icons/camera.png +0 -0
- package/themes/uber-eats/src/assets/icons/canceled.png +0 -0
- package/themes/uber-eats/src/assets/icons/card-delivery.png +0 -0
- package/themes/uber-eats/src/assets/icons/card.png +0 -0
- package/themes/uber-eats/src/assets/icons/cash.png +0 -0
- package/themes/uber-eats/src/assets/icons/cc-stripe.png +0 -0
- package/themes/uber-eats/src/assets/icons/chat.png +0 -0
- package/themes/uber-eats/src/assets/icons/checkmark.png +0 -0
- package/themes/uber-eats/src/assets/icons/close.png +0 -0
- package/themes/uber-eats/src/assets/icons/completed.png +0 -0
- package/themes/uber-eats/src/assets/icons/credit-card.png +0 -0
- package/themes/uber-eats/src/assets/icons/delete.png +0 -0
- package/themes/uber-eats/src/assets/icons/drop_down.png +0 -0
- package/themes/uber-eats/src/assets/icons/group.png +0 -0
- package/themes/uber-eats/src/assets/icons/help.png +0 -0
- package/themes/uber-eats/src/assets/icons/home.png +0 -0
- package/themes/uber-eats/src/assets/icons/ic_email.png +0 -0
- package/themes/uber-eats/src/assets/icons/ic_lock.png +0 -0
- package/themes/uber-eats/src/assets/icons/image.png +0 -0
- package/themes/uber-eats/src/assets/icons/inprogress.png +0 -0
- package/themes/uber-eats/src/assets/icons/lunch.png +0 -0
- package/themes/uber-eats/src/assets/icons/mail.png +0 -0
- package/themes/uber-eats/src/assets/icons/map.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-help.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-logout.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-orders.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu-user.png +0 -0
- package/themes/uber-eats/src/assets/icons/menu.png +0 -0
- package/themes/uber-eats/src/assets/icons/paypal.png +0 -0
- package/themes/uber-eats/src/assets/icons/paypal2.png +0 -0
- package/themes/uber-eats/src/assets/icons/pending.png +0 -0
- package/themes/uber-eats/src/assets/icons/phone.png +0 -0
- package/themes/uber-eats/src/assets/icons/pin_outline.png +0 -0
- package/themes/uber-eats/src/assets/icons/send.png +0 -0
- package/themes/uber-eats/src/assets/icons/speech-bubble.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe-s.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe-sb.png +0 -0
- package/themes/uber-eats/src/assets/icons/stripe.png +0 -0
- package/themes/uber-eats/src/assets/icons/trash.png +0 -0
- package/themes/uber-eats/src/assets/icons/upload.png +0 -0
- package/themes/uber-eats/src/assets/icons/wallet.png +0 -0
- package/themes/uber-eats/src/assets/images/business.png +0 -0
- package/themes/uber-eats/src/assets/images/categories/category-all.png +0 -0
- package/themes/uber-eats/src/assets/images/dummies/product.png +0 -0
- package/themes/uber-eats/src/assets/images/dummies/store.png +0 -0
- package/themes/uber-eats/src/assets/images/empty-active-orders.png +0 -0
- package/themes/uber-eats/src/assets/images/empty-past-orders.png +0 -0
- package/themes/uber-eats/src/assets/images/home-hero.png +0 -0
- package/themes/uber-eats/src/assets/images/image.png +0 -0
- package/themes/uber-eats/src/assets/images/logo-long.png +0 -0
- package/themes/uber-eats/src/assets/images/logo-white.png +0 -0
- package/themes/uber-eats/src/assets/images/logo.png +0 -0
- package/themes/uber-eats/src/assets/images/logotype-invert.png +0 -0
- package/themes/uber-eats/src/assets/images/logotype.png +0 -0
- package/themes/uber-eats/src/assets/images/marker.png +0 -0
- package/themes/uber-eats/src/assets/images/not-found.png +0 -0
- package/themes/uber-eats/src/assets/images/paper-plane.png +0 -0
- package/themes/uber-eats/src/assets/images/slide1.png +0 -0
- package/themes/uber-eats/src/assets/images/slide2.png +0 -0
- package/themes/uber-eats/src/assets/images/slide3.png +0 -0
- package/themes/uber-eats/src/assets/images/slide4.png +0 -0
- package/themes/uber-eats/src/assets/images/slide5.png +0 -0
- package/themes/uber-eats/src/assets/images/slide6.png +0 -0
- package/themes/uber-eats/src/assets/images/status-0.png +0 -0
- package/themes/uber-eats/src/assets/images/status-1.png +0 -0
- package/themes/uber-eats/src/assets/images/status-10.png +0 -0
- package/themes/uber-eats/src/assets/images/status-11.png +0 -0
- package/themes/uber-eats/src/assets/images/status-12.png +0 -0
- package/themes/uber-eats/src/assets/images/status-13.png +0 -0
- package/themes/uber-eats/src/assets/images/status-14.png +0 -0
- package/themes/uber-eats/src/assets/images/status-15.png +0 -0
- package/themes/uber-eats/src/assets/images/status-16.png +0 -0
- package/themes/uber-eats/src/assets/images/status-17.png +0 -0
- package/themes/uber-eats/src/assets/images/status-18.png +0 -0
- package/themes/uber-eats/src/assets/images/status-19.png +0 -0
- package/themes/uber-eats/src/assets/images/status-2.png +0 -0
- package/themes/uber-eats/src/assets/images/status-20.png +0 -0
- package/themes/uber-eats/src/assets/images/status-21.png +0 -0
- package/themes/uber-eats/src/assets/images/status-3.png +0 -0
- package/themes/uber-eats/src/assets/images/status-4.png +0 -0
- package/themes/uber-eats/src/assets/images/status-5.png +0 -0
- package/themes/uber-eats/src/assets/images/status-6.png +0 -0
- package/themes/uber-eats/src/assets/images/status-7.png +0 -0
- package/themes/uber-eats/src/assets/images/status-8.png +0 -0
- package/themes/uber-eats/src/assets/images/status-9.png +0 -0
- package/themes/uber-eats/src/assets/images/store.png +0 -0
- package/themes/uber-eats/src/assets/json/order.json +0 -205
- package/themes/uber-eats/src/assets/json/orders.json +0 -3592
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-react-native",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.32",
|
|
4
4
|
"description": "Reusable components made in react native",
|
|
5
5
|
"main": "src/index.tsx",
|
|
6
6
|
"author": "ordering.inc",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"react-native-lightbox": "^0.8.1",
|
|
85
85
|
"react-native-linear-gradient": "^2.5.6",
|
|
86
86
|
"react-native-loading-spinner-overlay": "^2.0.0",
|
|
87
|
+
"react-native-map-link": "^2.8.2",
|
|
87
88
|
"react-native-maps": "^0.28.0",
|
|
88
89
|
"react-native-modal-dropdown": "^1.0.1",
|
|
89
90
|
"react-native-onesignal": "^4.1.1",
|
|
@@ -4,16 +4,15 @@ import MapView, {
|
|
|
4
4
|
PROVIDER_GOOGLE,
|
|
5
5
|
Marker
|
|
6
6
|
} from 'react-native-maps';
|
|
7
|
-
import Geocoder from 'react-native-geocoding';
|
|
8
7
|
import { useLanguage, useConfig, useUtils } from 'ordering-components/native';
|
|
9
8
|
import { GoogleMapsParams } from '../../types';
|
|
10
9
|
import Alert from '../../providers/AlertProvider';
|
|
11
|
-
import { OIconButton, OIcon, OFab, OText,
|
|
10
|
+
import { OIconButton, OIcon, OFab, OText, OButton } from '../shared';
|
|
12
11
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
|
13
12
|
import { useTheme } from 'styled-components/native';
|
|
14
13
|
import { useLocation } from '../../hooks/useLocation';
|
|
15
|
-
// import MapViewDirections from 'react-native-maps-directions';
|
|
16
14
|
import { FloatingButton } from '../FloatingButton';
|
|
15
|
+
import { showLocation } from 'react-native-map-link';
|
|
17
16
|
|
|
18
17
|
export const DriverMap = (props: GoogleMapsParams) => {
|
|
19
18
|
const {
|
|
@@ -90,11 +89,11 @@ export const DriverMap = (props: GoogleMapsParams) => {
|
|
|
90
89
|
content: !(errKey === 'ERROR_MAX_LIMIT_LOCATION_TO')
|
|
91
90
|
? [t(errKey, mapErrors[errKey])]
|
|
92
91
|
: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
`${t(errKey, mapErrors[errKey])} ${maxLimitLocation} ${t(
|
|
93
|
+
'METTERS',
|
|
94
|
+
'meters',
|
|
95
|
+
)}`,
|
|
96
|
+
],
|
|
98
97
|
key: errKey,
|
|
99
98
|
});
|
|
100
99
|
};
|
|
@@ -322,6 +321,17 @@ export const DriverMap = (props: GoogleMapsParams) => {
|
|
|
322
321
|
arrowDistance: {
|
|
323
322
|
borderWidth: 0,
|
|
324
323
|
},
|
|
324
|
+
buttonContainer: {
|
|
325
|
+
width: '100%',
|
|
326
|
+
alignItems: 'center',
|
|
327
|
+
justifyContent: 'center',
|
|
328
|
+
paddingVertical: 10,
|
|
329
|
+
paddingHorizontal: 80,
|
|
330
|
+
},
|
|
331
|
+
showButton: {
|
|
332
|
+
alignSelf: 'center',
|
|
333
|
+
borderRadius: 10,
|
|
334
|
+
}
|
|
325
335
|
});
|
|
326
336
|
|
|
327
337
|
return (
|
|
@@ -453,7 +463,6 @@ export const DriverMap = (props: GoogleMapsParams) => {
|
|
|
453
463
|
</OText>
|
|
454
464
|
</View>
|
|
455
465
|
</View>
|
|
456
|
-
|
|
457
466
|
<View style={styles.facDistance}>
|
|
458
467
|
<View
|
|
459
468
|
style={{
|
|
@@ -475,22 +484,31 @@ export const DriverMap = (props: GoogleMapsParams) => {
|
|
|
475
484
|
size={13}
|
|
476
485
|
numberOfLines={2}
|
|
477
486
|
adjustsFontSizeToFit>
|
|
478
|
-
{`${travelTime.toFixed(2)} - ${
|
|
479
|
-
|
|
480
|
-
} ${distancesFromTwoPlacesKm.toFixed(2)} km`}
|
|
487
|
+
{`${travelTime.toFixed(2)} - ${isMin ? t('MINNUTES', 'mins') : t('HOURS', 'hours')
|
|
488
|
+
} ${distancesFromTwoPlacesKm.toFixed(2)} km`}
|
|
481
489
|
</OText>
|
|
482
490
|
</View>
|
|
483
491
|
</View>
|
|
484
492
|
</View>
|
|
485
|
-
<View>
|
|
486
|
-
<
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
493
|
+
<View style={styles.buttonContainer}>
|
|
494
|
+
<OButton
|
|
495
|
+
imgRightSrc=''
|
|
496
|
+
textStyle={{ color: theme.colors.white }}
|
|
497
|
+
style={{
|
|
498
|
+
...styles.showButton,
|
|
499
|
+
bottom: showAcceptOrReject ? 80 : 0
|
|
500
|
+
}}
|
|
501
|
+
onClick={() => showLocation({
|
|
502
|
+
latitude: destination.latitude,
|
|
503
|
+
longitude: destination.longitude,
|
|
504
|
+
sourceLatitude: userLocation.latitude,
|
|
505
|
+
sourceLongitude: userLocation.longitude,
|
|
506
|
+
naverCallerName: 'com.deliveryapp',
|
|
507
|
+
dialogTitle: t('SHOW_IN_OTHER_MAPS', 'Show in other maps'),
|
|
508
|
+
dialogMessage: t('WHAT_APP_WOULD_YOU_USE', 'What app would you like to use?'),
|
|
509
|
+
cancelText: t('CANCEL', 'Cancel'),
|
|
492
510
|
})}
|
|
493
|
-
|
|
511
|
+
text={t('SHOW_IN_OTHER_MAPS', 'Show in other maps')}
|
|
494
512
|
/>
|
|
495
513
|
</View>
|
|
496
514
|
{showAcceptOrReject && (
|
|
@@ -309,25 +309,6 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
309
309
|
/>
|
|
310
310
|
</IconWrapper>
|
|
311
311
|
</View>
|
|
312
|
-
{isBusinessApp && (
|
|
313
|
-
<View style={{ flex: 1, flexDirection: 'row', justifyContent: 'flex-start', maxHeight: 40 }}>
|
|
314
|
-
<OIcon
|
|
315
|
-
src={theme.images.general.information}
|
|
316
|
-
width={12}
|
|
317
|
-
height={12}
|
|
318
|
-
color={theme.colors.skyBlue}
|
|
319
|
-
style={{ marginRight: 5 }}
|
|
320
|
-
/>
|
|
321
|
-
<OText size={12}>
|
|
322
|
-
{t('MORE_SETTINGS_GO_TO', 'For more settings go to ')}
|
|
323
|
-
</OText>
|
|
324
|
-
<TouchableOpacity onPress={() => { Linking.openURL('https://new-admin.tryordering.com/') }}>
|
|
325
|
-
<OText size={12} color={theme.colors.skyBlue}>
|
|
326
|
-
{t('LINK_MORE_SETTINGS_GO_TO', 'new-admin.ordering.co')}
|
|
327
|
-
</OText>
|
|
328
|
-
</TouchableOpacity>
|
|
329
|
-
</View>
|
|
330
|
-
)}
|
|
331
312
|
<FiltersTab>
|
|
332
313
|
<ScrollView
|
|
333
314
|
ref={scrollRefTab}
|
|
@@ -524,85 +505,82 @@ const OrdersOptionUI = (props: OrdersOptionParams) => {
|
|
|
524
505
|
{/* </GestureRecognizer> */}
|
|
525
506
|
|
|
526
507
|
<NewOrderNotification />
|
|
527
|
-
|
|
528
|
-
<
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
{
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
/>
|
|
604
|
-
</ModalContainer>
|
|
605
|
-
</OModal>
|
|
508
|
+
{openModal && (
|
|
509
|
+
<OModal open={openModal} entireModal customClose>
|
|
510
|
+
<ModalContainer
|
|
511
|
+
nestedScrollEnabled={true}
|
|
512
|
+
>
|
|
513
|
+
<OIconButton
|
|
514
|
+
icon={theme.images.general.arrow_left}
|
|
515
|
+
borderColor={theme.colors.clear}
|
|
516
|
+
iconColor={theme.colors.backArrow}
|
|
517
|
+
iconStyle={{ width: 20, height: 13 }}
|
|
518
|
+
style={{
|
|
519
|
+
maxWidth: 40,
|
|
520
|
+
height: 35,
|
|
521
|
+
justifyContent: 'flex-end',
|
|
522
|
+
marginBottom: 30,
|
|
523
|
+
marginTop: 30
|
|
524
|
+
}}
|
|
525
|
+
onClick={() => setOpenModal(false)}
|
|
526
|
+
/>
|
|
527
|
+
<ModalTitle>{t('SEARCH_ORDERS', 'Search orders')}</ModalTitle>
|
|
528
|
+
<OInput
|
|
529
|
+
value={search.id}
|
|
530
|
+
onChange={(value: any) => setSearch({ ...search, id: value })}
|
|
531
|
+
style={styles.inputStyle}
|
|
532
|
+
placeholder={t('ORDER_NUMBER', 'Order number')}
|
|
533
|
+
autoCorrect={false}
|
|
534
|
+
/>
|
|
535
|
+
<OrdersOptionDate
|
|
536
|
+
{...props}
|
|
537
|
+
search={search}
|
|
538
|
+
onSearch={setSearch}
|
|
539
|
+
/>
|
|
540
|
+
<OrdersOptionCity
|
|
541
|
+
{...props}
|
|
542
|
+
search={search}
|
|
543
|
+
onSearch={setSearch}
|
|
544
|
+
/>
|
|
545
|
+
{isBusinessApp && (
|
|
546
|
+
<>
|
|
547
|
+
<OrdersOptionBusiness
|
|
548
|
+
{...props}
|
|
549
|
+
search={search}
|
|
550
|
+
onSearch={setSearch}
|
|
551
|
+
/>
|
|
552
|
+
<OrdersOptionDelivery
|
|
553
|
+
{...props}
|
|
554
|
+
search={search}
|
|
555
|
+
onSearch={setSearch}
|
|
556
|
+
/>
|
|
557
|
+
<OrdersOptionDriver
|
|
558
|
+
{...props}
|
|
559
|
+
search={search}
|
|
560
|
+
onSearch={setSearch}
|
|
561
|
+
/>
|
|
562
|
+
<OrdersOptionPaymethod
|
|
563
|
+
{...props}
|
|
564
|
+
search={search}
|
|
565
|
+
onSearch={setSearch}
|
|
566
|
+
/>
|
|
567
|
+
</>
|
|
568
|
+
)}
|
|
569
|
+
<OButton
|
|
570
|
+
text={t('SEARCH', 'Search')}
|
|
571
|
+
textStyle={{ color: theme.colors.white }}
|
|
572
|
+
imgRightSrc={null}
|
|
573
|
+
style={{
|
|
574
|
+
borderRadius: 7.6,
|
|
575
|
+
marginBottom: 70,
|
|
576
|
+
marginTop: 60,
|
|
577
|
+
zIndex: 12
|
|
578
|
+
}}
|
|
579
|
+
onClick={applyFilters}
|
|
580
|
+
/>
|
|
581
|
+
</ModalContainer>
|
|
582
|
+
</OModal>
|
|
583
|
+
)}
|
|
606
584
|
</>
|
|
607
585
|
);
|
|
608
586
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, StyleSheet, Dimensions } from 'react-native';
|
|
3
|
-
import { ScrollView } from 'react-native-gesture-handler';
|
|
2
|
+
import { View, StyleSheet, Dimensions, Linking } from 'react-native';
|
|
3
|
+
import { ScrollView, TouchableOpacity } from 'react-native-gesture-handler';
|
|
4
4
|
import { Placeholder, PlaceholderLine, Fade } from 'rn-placeholder';
|
|
5
5
|
import NetInfo from '@react-native-community/netinfo';
|
|
6
6
|
import { useTheme } from 'styled-components/native';
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { NotFoundSource } from '../NotFoundSource';
|
|
15
15
|
import { SearchBar } from '../SearchBar';
|
|
16
16
|
import { BusinessController } from '../BusinessController';
|
|
17
|
-
import { OText } from '../shared';
|
|
17
|
+
import { OIcon, OText } from '../shared';
|
|
18
18
|
import { BusinessesListingParams } from '../../types';
|
|
19
19
|
|
|
20
20
|
const StoresListUI = (props: BusinessesListingParams) => {
|
|
@@ -143,6 +143,23 @@ const StoresListUI = (props: BusinessesListingParams) => {
|
|
|
143
143
|
showsVerticalScrollIndicator={false}
|
|
144
144
|
style={styles.container}
|
|
145
145
|
onScroll={(e: any) => handleScroll(e)}>
|
|
146
|
+
<View style={{ flex: 1, flexDirection: 'row', justifyContent: 'flex-start', maxHeight: 40 }}>
|
|
147
|
+
<OIcon
|
|
148
|
+
src={theme.images.general.information}
|
|
149
|
+
width={12}
|
|
150
|
+
height={12}
|
|
151
|
+
color={theme.colors.skyBlue}
|
|
152
|
+
style={{ marginRight: 5 }}
|
|
153
|
+
/>
|
|
154
|
+
<OText size={12}>
|
|
155
|
+
{t('MORE_SETTINGS_GO_TO', 'For more settings go to ')}
|
|
156
|
+
</OText>
|
|
157
|
+
<TouchableOpacity onPress={() => { Linking.openURL(t('LINK_MORE_SETTINGS_GO_TO', 'https://app.ordering.co')) }}>
|
|
158
|
+
<OText size={12} color={theme.colors.skyBlue}>
|
|
159
|
+
{t('LINK_MORE_SETTINGS_GO_TO', 'https://app.ordering.co')}
|
|
160
|
+
</OText>
|
|
161
|
+
</TouchableOpacity>
|
|
162
|
+
</View>
|
|
146
163
|
{!loading && !loadBusinesses && businesses?.length === 0 && (
|
|
147
164
|
<NotFoundSource
|
|
148
165
|
content={
|
|
@@ -154,8 +171,7 @@ const StoresListUI = (props: BusinessesListingParams) => {
|
|
|
154
171
|
conditioned={false}
|
|
155
172
|
/>
|
|
156
173
|
)}
|
|
157
|
-
|
|
158
|
-
{!error &&
|
|
174
|
+
{!error && businesses &&
|
|
159
175
|
businesses?.map((business: any) => (
|
|
160
176
|
<BusinessController
|
|
161
177
|
key={business?.id}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'react-native-map-link'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|