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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.12.29",
3
+ "version": "0.12.30",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -442,6 +442,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
442
442
  style={{
443
443
  backgroundColor: theme.colors.inputChat,
444
444
  borderRadius: 7.5,
445
+ marginBottom: 20
445
446
  }}>
446
447
  <CountryPicker
447
448
  // @ts-ignore
@@ -5,7 +5,7 @@ export const OrderDetailsContainer = styled.ScrollView`
5
5
  `;
6
6
 
7
7
  export const Pickup = styled.View`
8
- padding-vertical: 10px;
8
+ padding-vertical: 20px;
9
9
  margin-bottom: 20px;
10
10
  `;
11
11
 
@@ -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
- <OModal open={openModal} entireModal customClose>
528
- <ModalContainer
529
- nestedScrollEnabled={true}
530
- >
531
- <OIconButton
532
- icon={theme.images.general.arrow_left}
533
- borderColor={theme.colors.clear}
534
- iconColor={theme.colors.backArrow}
535
- iconStyle={{ width: 20, height: 13 }}
536
- style={{
537
- maxWidth: 40,
538
- height: 35,
539
- justifyContent: 'flex-end',
540
- marginBottom: 30,
541
- marginTop: 30
542
- }}
543
- onClick={() => setOpenModal(false)}
544
- />
545
- <ModalTitle>{t('SEARCH_ORDERS', 'Search orders')}</ModalTitle>
546
- <OInput
547
- value={search.id}
548
- onChange={(value: any) => setSearch({ ...search, id: value })}
549
- style={styles.inputStyle}
550
- placeholder={t('ORDER_NUMBER', 'Order number')}
551
- autoCorrect={false}
552
- />
553
- <OrdersOptionDate
554
- {...props}
555
- search={search}
556
- onSearch={setSearch}
557
- />
558
- <OrdersOptionCity
559
- {...props}
560
- search={search}
561
- onSearch={setSearch}
562
- />
563
- {isBusinessApp && (
564
- <>
565
- <OrdersOptionBusiness
566
- {...props}
567
- search={search}
568
- onSearch={setSearch}
569
- />
570
- <OrdersOptionDelivery
571
- {...props}
572
- search={search}
573
- onSearch={setSearch}
574
- />
575
- <OrdersOptionDriver
576
- {...props}
577
- search={search}
578
- onSearch={setSearch}
579
- />
580
- <OrdersOptionPaymethod
581
- {...props}
582
- search={search}
583
- onSearch={setSearch}
584
- />
585
- </>
586
- )}
587
- <OButton
588
- text={t('SEARCH', 'Search')}
589
- textStyle={{ color: theme.colors.white }}
590
- imgRightSrc={null}
591
- style={{
592
- borderRadius: 7.6,
593
- marginBottom: 70,
594
- marginTop: 60,
595
- zIndex: 12
596
- }}
597
- onClick={applyFilters}
598
- />
599
- </ModalContainer>
600
- </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
+ )}
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