ordering-ui-react-native 0.23.14 → 0.23.15
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/BusinessController/index.tsx +8 -3
- package/themes/business/src/components/PreviousMessages/index.tsx +8 -3
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +2 -1
- package/themes/business/src/components/PrinterEdition/index.tsx +5 -1
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { StyleSheet, View, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
3
|
+
import FastImage from 'react-native-fast-image'
|
|
3
4
|
import ToggleSwitch from 'toggle-switch-react-native';
|
|
4
5
|
import { useTheme } from 'styled-components/native';
|
|
5
6
|
import {
|
|
@@ -99,10 +100,14 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
99
100
|
onPress={() => navigation && business?.slug && navigation.navigate('BusinessProductListing', { slug: business?.slug })}
|
|
100
101
|
>
|
|
101
102
|
<Logo style={styles.logo}>
|
|
102
|
-
<
|
|
103
|
-
url={optimizeImage(business?.logo, 'h_300,c_limit')}
|
|
104
|
-
src={!business?.logo && theme?.images?.dummies?.businessLogo}
|
|
103
|
+
<FastImage
|
|
105
104
|
style={styles.icon}
|
|
105
|
+
source={business?.logo?.includes('https') ? {
|
|
106
|
+
uri: business?.logo,
|
|
107
|
+
priority: FastImage.priority.high,
|
|
108
|
+
cache: FastImage.cacheControl.immutable
|
|
109
|
+
} : business?.logo ?? theme?.images?.dummies?.businessLogo}
|
|
110
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
106
111
|
/>
|
|
107
112
|
</Logo>
|
|
108
113
|
<Information>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { StyleSheet, TouchableOpacity, FlatList, RefreshControl } from 'react-native';
|
|
3
|
+
import FastImage from 'react-native-fast-image';
|
|
3
4
|
import { useTheme } from 'styled-components/native';
|
|
4
5
|
import { useLanguage, useUtils } from 'ordering-components/native';
|
|
5
6
|
import { Card, Logo, Information, Header, Badge } from './styles';
|
|
@@ -302,10 +303,14 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
302
303
|
activeOpacity={1}>
|
|
303
304
|
<Card key={order?.id}>
|
|
304
305
|
<Logo style={styles.logo}>
|
|
305
|
-
<
|
|
306
|
-
url={optimizeImage(order?.business?.logo, 'h_300,c_limit')}
|
|
307
|
-
src={!order?.business?.logo && theme?.images?.dummies?.businessLogo}
|
|
306
|
+
<FastImage
|
|
308
307
|
style={styles.icon}
|
|
308
|
+
source={order.business?.logo?.includes('https') ? {
|
|
309
|
+
uri: order.business?.logo,
|
|
310
|
+
priority: FastImage.priority.high,
|
|
311
|
+
cache: FastImage.cacheControl.immutable
|
|
312
|
+
} : order.business?.logo ?? theme?.images?.dummies?.businessLogo}
|
|
313
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
309
314
|
/>
|
|
310
315
|
</Logo>
|
|
311
316
|
<Information>
|
|
@@ -171,7 +171,8 @@ export const OrderItem = React.memo((props: any) => {
|
|
|
171
171
|
style={styles.icon}
|
|
172
172
|
source={order.business?.logo?.includes('https') ? {
|
|
173
173
|
uri: order.business?.logo,
|
|
174
|
-
priority: FastImage.priority.
|
|
174
|
+
priority: FastImage.priority.high,
|
|
175
|
+
cache: FastImage.cacheControl.immutable
|
|
175
176
|
} : order.business?.logo ?? theme?.images?.dummies?.businessLogo}
|
|
176
177
|
resizeMode={FastImage.resizeMode.cover}
|
|
177
178
|
/>
|
|
@@ -63,9 +63,13 @@ export const PrinterEdition = (props: any) => {
|
|
|
63
63
|
paddingRight: 10
|
|
64
64
|
},
|
|
65
65
|
inputStyle: {
|
|
66
|
-
height: 40,
|
|
67
66
|
borderWidth: 1,
|
|
68
67
|
borderRadius: 8,
|
|
68
|
+
color: theme.colors.arrowColor,
|
|
69
|
+
borderColor: theme.colors.inputSignup,
|
|
70
|
+
backgroundColor: theme.colors.transparent,
|
|
71
|
+
minHeight: 50,
|
|
72
|
+
maxHeight: 50
|
|
69
73
|
},
|
|
70
74
|
savePrinterBtnText: {
|
|
71
75
|
color: theme.colors.white,
|