ordering-ui-react-native 0.22.66-release → 0.22.67-release

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.22.66-release",
3
+ "version": "0.22.67-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -114,7 +114,7 @@ const OrderProgressUI = (props: any) => {
114
114
  setInitialLoaded(true)
115
115
  }, [orderList.loading, initialLoaded])
116
116
 
117
- const progressBarObjt = (s: any) => lastOrder?.delivery_type && lastOrder?.delivery_type === 2 ? getOrderStatuPickUp(s) : getOrderStatus(s)
117
+ const progressBarObjt = (s: any) => lastOrder?.delivery_type && lastOrder?.delivery_type === 2 ? getOrderStatuPickUp(s) : getOrderStatus(s, t)
118
118
 
119
119
  return (
120
120
  <>
@@ -377,7 +377,7 @@ export const getLogisticTag = (status: any) => {
377
377
  return keyList[status] ? keyList[status] : t('UNKNOWN', 'Unknown')
378
378
  }
379
379
 
380
- export const getOrderStatus = (s: string) => {
380
+ export const getOrderStatus = (s: string, t?: any) => {
381
381
  const status = parseInt(s);
382
382
  const orderStatus = [
383
383
  {
@@ -745,7 +745,7 @@ export const lightenDarkenColor = (color: any) => {
745
745
  }
746
746
  }
747
747
 
748
- export const vibrateApp = (impact ?: string) => {
748
+ export const vibrateApp = (impact?: string) => {
749
749
  const options = {
750
750
  enableVibrateFallback: true,
751
751
  ignoreAndroidSystemSettings: false