ordering-ui-react-native 0.12.29 → 0.12.30
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/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 -93
- package/themes/business/src/components/StoresList/index.tsx +20 -4
package/package.json
CHANGED
|
@@ -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,80 +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
|
-
|
|
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
|
+
)}
|
|
601
584
|
</>
|
|
602
585
|
);
|
|
603
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) => {
|
|
@@ -154,7 +154,23 @@ const StoresListUI = (props: BusinessesListingParams) => {
|
|
|
154
154
|
conditioned={false}
|
|
155
155
|
/>
|
|
156
156
|
)}
|
|
157
|
-
|
|
157
|
+
<View style={{ flex: 1, flexDirection: 'row', justifyContent: 'flex-start', maxHeight: 40 }}>
|
|
158
|
+
<OIcon
|
|
159
|
+
src={theme.images.general.information}
|
|
160
|
+
width={12}
|
|
161
|
+
height={12}
|
|
162
|
+
color={theme.colors.skyBlue}
|
|
163
|
+
style={{ marginRight: 5 }}
|
|
164
|
+
/>
|
|
165
|
+
<OText size={12}>
|
|
166
|
+
{t('MORE_SETTINGS_GO_TO', 'For more settings go to ')}
|
|
167
|
+
</OText>
|
|
168
|
+
<TouchableOpacity onPress={() => { Linking.openURL(t('LINK_MORE_SETTINGS_GO_TO', 'https://app.ordering.co')) }}>
|
|
169
|
+
<OText size={12} color={theme.colors.skyBlue}>
|
|
170
|
+
{t('LINK_MORE_SETTINGS_GO_TO', 'https://app.ordering.co')}
|
|
171
|
+
</OText>
|
|
172
|
+
</TouchableOpacity>
|
|
173
|
+
</View>
|
|
158
174
|
{!error &&
|
|
159
175
|
businesses?.map((business: any) => (
|
|
160
176
|
<BusinessController
|