ordering-ui-react-native 0.12.22 → 0.12.23
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
|
@@ -3,10 +3,11 @@ import { useLanguage, useUtils, useConfig } from 'ordering-components/native'
|
|
|
3
3
|
import { useTheme } from 'styled-components/native';
|
|
4
4
|
import { OButton, OIcon, OText } from '../shared'
|
|
5
5
|
import { ActiveOrdersContainer, Card, Map, Information, Logo, OrderInformation, BusinessInformation, Price } from './styles'
|
|
6
|
-
import { View, StyleSheet } from 'react-native'
|
|
6
|
+
import { View, StyleSheet, TouchableWithoutFeedback } from 'react-native'
|
|
7
7
|
import { getGoogleMapImage } from '../../utils'
|
|
8
8
|
|
|
9
9
|
import { ActiveOrdersParams } from '../../types'
|
|
10
|
+
import { ScrollView as GestureHandlerScrollView } from 'react-native-gesture-handler'
|
|
10
11
|
|
|
11
12
|
export const ActiveOrders = (props: ActiveOrdersParams) => {
|
|
12
13
|
const {
|
|
@@ -73,19 +74,35 @@ export const ActiveOrders = (props: ActiveOrdersParams) => {
|
|
|
73
74
|
)}
|
|
74
75
|
<OrderInformation>
|
|
75
76
|
<BusinessInformation style={{ width: '60%' }}>
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
<GestureHandlerScrollView
|
|
78
|
+
showsVerticalScrollIndicator={false}
|
|
79
|
+
showsHorizontalScrollIndicator={false}
|
|
80
|
+
horizontal
|
|
81
|
+
>
|
|
82
|
+
<TouchableWithoutFeedback>
|
|
83
|
+
<View>
|
|
84
|
+
<OText
|
|
85
|
+
size={16}
|
|
86
|
+
numberOfLines={1}
|
|
87
|
+
ellipsizeMode='tail'
|
|
88
|
+
>
|
|
89
|
+
{order.business?.name}
|
|
90
|
+
</OText>
|
|
91
|
+
</View>
|
|
92
|
+
</TouchableWithoutFeedback>
|
|
93
|
+
</GestureHandlerScrollView>
|
|
94
|
+
<GestureHandlerScrollView
|
|
95
|
+
showsVerticalScrollIndicator={false}
|
|
96
|
+
showsHorizontalScrollIndicator={false}
|
|
97
|
+
horizontal
|
|
98
|
+
>
|
|
99
|
+
<TouchableWithoutFeedback>
|
|
100
|
+
<View style={styles.orderNumber}>
|
|
101
|
+
<OText size={12} space color={theme.colors.textSecondary}>{t('ORDER_NUMBER', 'Order No.')}</OText>
|
|
102
|
+
<OText size={12} color={theme.colors.textSecondary}>{order.id}</OText>
|
|
103
|
+
</View>
|
|
104
|
+
</TouchableWithoutFeedback>
|
|
105
|
+
</GestureHandlerScrollView>
|
|
89
106
|
<OText size={12} color={theme.colors.textSecondary}>{order?.delivery_datetime_utc
|
|
90
107
|
? parseDate(order?.delivery_datetime_utc)
|
|
91
108
|
: parseDate(order?.delivery_datetime, { utc: false })}</OText>
|