ordering-ui-react-native 0.16.98 → 0.17.0
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/src/components/BusinessProductsList/index.tsx +1 -1
- package/themes/business/src/components/BusinessController/index.tsx +2 -2
- package/themes/business/src/components/OrdersOptionBusiness/index.tsx +1 -1
- package/themes/business/src/components/PreviousMessages/index.tsx +16 -18
- package/themes/business/src/components/PreviousOrders/index.tsx +10 -12
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ const BusinessProductsListUI = (props: BusinessProductsListParams) => {
|
|
|
68
68
|
|
|
69
69
|
{
|
|
70
70
|
!category.id && categories && categories.filter(category => category.id !== null).map((category, i, _categories) => {
|
|
71
|
-
const products = categoryState.products?.filter((product: any) => category?.children?.some((cat: any) => cat?.category_id === product?.category_id)) || []
|
|
71
|
+
const products = categoryState.products?.filter((product: any) => category?.children?.some((cat: any) => cat?.category_id === product?.category_id) || product.category_id === category.id) || []
|
|
72
72
|
return (
|
|
73
73
|
<View key={`category${category.id}`} style={{ alignItems: 'flex-start', flex: 1 }}>
|
|
74
74
|
{
|
|
@@ -67,11 +67,11 @@ export const BusinessControllerUI = (props: BusinessControllerParams) => {
|
|
|
67
67
|
shadowColor: '#000',
|
|
68
68
|
shadowOffset: {
|
|
69
69
|
width: 0,
|
|
70
|
-
height: 1.5,
|
|
70
|
+
height: business?.logo ? 1.5 : 0,
|
|
71
71
|
},
|
|
72
72
|
shadowOpacity: 0.21,
|
|
73
73
|
shadowRadius: 3,
|
|
74
|
-
elevation: 7,
|
|
74
|
+
elevation: business?.logo ? 7 : 0,
|
|
75
75
|
},
|
|
76
76
|
header: {
|
|
77
77
|
flexDirection: 'row',
|
|
@@ -176,17 +176,17 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
176
176
|
slug: 'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
177
177
|
percentage: 95,
|
|
178
178
|
},
|
|
179
|
-
{
|
|
180
|
-
key: 22,
|
|
181
|
-
value: t('ORDER_LOOKING_FOR_DRIVER', 'Looking for driver'),
|
|
182
|
-
slug: 'ORDER_LOOKING_FOR_DRIVER',
|
|
179
|
+
{
|
|
180
|
+
key: 22,
|
|
181
|
+
value: t('ORDER_LOOKING_FOR_DRIVER', 'Looking for driver'),
|
|
182
|
+
slug: 'ORDER_LOOKING_FOR_DRIVER',
|
|
183
183
|
percentage: 35
|
|
184
184
|
},
|
|
185
|
-
{
|
|
186
|
-
key: 23,
|
|
187
|
-
value: t('ORDER_DRIVER_ON_WAY', 'Driver on way'),
|
|
188
|
-
slug: 'ORDER_DRIVER_ON_WAY',
|
|
189
|
-
percentage: 45
|
|
185
|
+
{
|
|
186
|
+
key: 23,
|
|
187
|
+
value: t('ORDER_DRIVER_ON_WAY', 'Driver on way'),
|
|
188
|
+
slug: 'ORDER_DRIVER_ON_WAY',
|
|
189
|
+
percentage: 45
|
|
190
190
|
}
|
|
191
191
|
];
|
|
192
192
|
|
|
@@ -266,15 +266,13 @@ export const PreviousMessages = (props: PreviousMessagesParams) => {
|
|
|
266
266
|
style={styles.cardButton}
|
|
267
267
|
activeOpacity={1}>
|
|
268
268
|
<Card key={order?.id}>
|
|
269
|
-
{
|
|
270
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
)}
|
|
277
|
-
|
|
269
|
+
<Logo style={styles.logo}>
|
|
270
|
+
<OIcon
|
|
271
|
+
url={optimizeImage(order?.business?.logo, 'h_300,c_limit')}
|
|
272
|
+
src={!order?.business?.logo && theme?.images?.dummies?.businessLogo}
|
|
273
|
+
style={styles.icon}
|
|
274
|
+
/>
|
|
275
|
+
</Logo>
|
|
278
276
|
<Information>
|
|
279
277
|
<Header>
|
|
280
278
|
<OText numberOfLines={1} style={styles.title}>
|
|
@@ -181,18 +181,16 @@ export const PreviousOrders = (props: any) => {
|
|
|
181
181
|
{allowColumns?.slaBar && (
|
|
182
182
|
<Timestatus style={{ backgroundColor: getStatusClassName(getDelayMinutes(order)) === 'in_time' ? '#00D27A' : getStatusClassName(getDelayMinutes(order)) === 'at_risk' ? '#FFC700' : getStatusClassName(getDelayMinutes(order)) === 'delayed' ? '#E63757' : '' }} />
|
|
183
183
|
)}
|
|
184
|
-
{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
</Logo>
|
|
195
|
-
)}
|
|
184
|
+
<Logo style={styles.logo}>
|
|
185
|
+
<OIcon
|
|
186
|
+
url={optimizeImage(
|
|
187
|
+
order.business?.logo,
|
|
188
|
+
'h_300,c_limit',
|
|
189
|
+
)}
|
|
190
|
+
src={!order?.business?.logo && theme?.images?.dummies?.businessLogo}
|
|
191
|
+
style={styles.icon}
|
|
192
|
+
/>
|
|
193
|
+
</Logo>
|
|
196
194
|
<Information>
|
|
197
195
|
{!!order?.order_group_id && (
|
|
198
196
|
<OText>
|