@propel-nsl/propel-react-native-sdk 1.1.6 → 1.1.7

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": "@propel-nsl/propel-react-native-sdk",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Propel Mobile SDK - React Native Core",
5
5
  "files": [
6
6
  "src/",
@@ -68,6 +68,10 @@ const getStatusIcon = (status: string) => {
68
68
  return (
69
69
  <CustomImage source={Images?.pendingIcon} imgStyle={[styles.icon]} />
70
70
  );
71
+ case 'cancelled':
72
+ return (
73
+ <CustomImage source={Images?.crossIcon} imgStyle={[styles.icon]} />
74
+ );
71
75
  default:
72
76
  return null;
73
77
  }
@@ -83,6 +87,8 @@ const getStatusColor = (status: string) => {
83
87
  return colors.orange;
84
88
  case 'partial':
85
89
  return colors.orange;
90
+ case 'cancelled':
91
+ return colors.red;
86
92
  case 'complete':
87
93
  case 'confirmed':
88
94
  return colors.green;
@@ -100,8 +106,9 @@ const getStatusText = (status: string) => {
100
106
  case 'pending':
101
107
  return 'Pending';
102
108
  case 'partial':
103
- case 'cancelled':
104
109
  return 'Partial';
110
+ case 'cancelled':
111
+ return 'Cancelled';
105
112
  case 'complete':
106
113
  return 'Complete';
107
114
  case 'confirmed':