ordering-ui-react-native 0.16.98 → 0.16.99

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.16.98",
3
+ "version": "0.16.99",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -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',
@@ -28,7 +28,7 @@ export const OrdersOptionBusinessUI = (props: any) => {
28
28
  }, [businessesList?.businesses])
29
29
 
30
30
  const handleClear = () => {
31
- onSearch({ ...search, option: '' })
31
+ onSearch({ ...search, business: '' })
32
32
  }
33
33
 
34
34
  const handleOpenSelect = () => {
@@ -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
- {!!order?.business?.logo && (
270
- <Logo style={styles.logo}>
271
- <OIcon
272
- url={optimizeImage(order?.business?.logo, 'h_300,c_limit')}
273
- style={styles.icon}
274
- />
275
- </Logo>
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
- !!order.business?.logo && (
186
- <Logo style={styles.logo}>
187
- <OIcon
188
- url={optimizeImage(
189
- order.business?.logo,
190
- 'h_300,c_limit',
191
- )}
192
- style={styles.icon}
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>