ordering-ui-react-native 0.23.15 → 0.23.16

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.23.15",
3
+ "version": "0.23.16",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -61,9 +61,14 @@ export const OrderItem = React.memo((props: any) => {
61
61
  const styles = StyleSheet.create({
62
62
  cardButton: {
63
63
  flex: 1,
64
- paddingVertical: (isIpad || isTablet) ? 20 : 0,
64
+ paddingVertical: (isIpad || isTablet) ? 20 : 5,
65
65
  marginBottom: IS_PORTRAIT ? 25 : 0,
66
66
  marginLeft: 3,
67
+ backgroundColor: order?.time_status === 'delayed'
68
+ ? theme.colors.danger100
69
+ : order?.time_status === 'at_risk'
70
+ ? theme.colors.warning100
71
+ : theme.colors.primaryContrast
67
72
  },
68
73
  icon: {
69
74
  borderRadius: 7.6,
@@ -239,7 +244,7 @@ export const OrderItem = React.memo((props: any) => {
239
244
  : parseDate(order?.delivery_datetime, { utc: false })}`)}
240
245
  </OText>
241
246
  )}
242
- {((currentTabSelected === 'pending' || currentTabSelected === 'inProgress') && allowColumns?.timer) && (
247
+ {((currentTabSelected === 'pending' || currentTabSelected === 'inProgress' || currentTabSelected === 'active') && allowColumns?.timer) && (
243
248
  <>
244
249
  <OText
245
250
  style={styles.date}
@@ -321,7 +321,7 @@ const MomentOptionUI = (props: MomentOptionParams) => {
321
321
  }
322
322
  }))
323
323
  }
324
- }, [dateSelected, JSON.stringify(hoursList), JSON.stringify(datesWhitelist), cateringPreorder, JSON.stringify(business)])
324
+ }, [dateSelected, JSON.stringify(hoursList), JSON.stringify(datesWhitelist), JSON.stringify(business)])
325
325
 
326
326
  useEffect(() => {
327
327
  setLocalMoment(moment, t)