ordering-ui-react-native 0.23.33 → 0.23.35

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.33",
3
+ "version": "0.23.35",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -473,7 +473,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
473
473
  let isBusinessMarker = false;
474
474
  const customerStatusses = [3, 9, 19, 23, 26]
475
475
  const businessStatusses = [7, 8, 18]
476
- const arrivedCustomerStatusses = [19, 23]
476
+ const arrivedCustomerStatusses = [9, 19, 23]
477
477
  if (businessStatusses?.includes(order?.status)) {
478
478
  const markerBusiness = 'Business';
479
479
  isBusinessMarker = true;
@@ -68,7 +68,7 @@ export const OrderItem = React.memo((props: any) => {
68
68
  ? theme.colors.danger100
69
69
  : order?.time_status === 'at_risk'
70
70
  ? theme.colors.warning100
71
- : theme.colors.primaryContrast
71
+ : '#fff'
72
72
  },
73
73
  icon: {
74
74
  borderRadius: 7.6,
@@ -188,8 +188,8 @@ const UserVerificationUI = (props: any) => {
188
188
  const setupUserPhoneNumber = () => {
189
189
  if (!user || !user?.cellphone || !user?.country_phone_code) return
190
190
  setPhoneState({
191
- cellphone: user?.cellphone,
192
- country_phone_code: user?.country_phone_code,
191
+ cellphone: user?.country_code === "PR" ? user?.cellphone.replace('787', '') : user?.cellphone,
192
+ country_phone_code: user?.country_code === "PR" ? '1787' : user?.country_phone_code,
193
193
  formatted: `+${user?.country_phone_code} ${user?.cellphone}`
194
194
  })
195
195
  }