From fb2347445433e96f9e8550720030318fedd6ccd6 Mon Sep 17 00:00:00 2001 From: Joe Gambino Date: Mon, 24 May 2021 17:56:58 -0700 Subject: [PATCH 1/2] Change IOUBadge color depending on which user owes money --- src/components/IOUBadge.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/components/IOUBadge.js b/src/components/IOUBadge.js index ba604e17a148..ffbed144e9be 100644 --- a/src/components/IOUBadge.js +++ b/src/components/IOUBadge.js @@ -11,18 +11,31 @@ const propTypes = { iouReport: PropTypes.shape({ /** The total amount in cents */ total: PropTypes.number, + + /** The owner of the IOUReport */ + ownerEmail: PropTypes.string, }), + + /** Session of currently logged in user */ + session: PropTypes.shape({ + email: PropTypes.string.isRequired, + }).isRequired, }; const defaultProps = { iouReport: { total: 0, + ownerEmail: null, }, }; const IOUBadge = props => ( `${ONYXKEYS.COLLECTION.REPORT_IOUS}${iouReportID}`, }, + session: { + key: ONYXKEYS.SESSION, + }, })(IOUBadge); From 836651d2096777091e5d88d6fc89a155c6719264 Mon Sep 17 00:00:00 2001 From: OSBotify Date: Tue, 25 May 2021 17:01:43 +0000 Subject: [PATCH 2/2] Update version to 1.0.52-3 --- android/app/build.gradle | 4 ++-- ios/ExpensifyCash/Info.plist | 2 +- ios/ExpensifyCashTests/Info.plist | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 5406935e25e5..2de5375ff417 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -148,8 +148,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001005202 - versionName "1.0.52-2" + versionCode 1001005203 + versionName "1.0.52-3" } splits { abi { diff --git a/ios/ExpensifyCash/Info.plist b/ios/ExpensifyCash/Info.plist index 87fae3cd42a4..8c2a77a3ce52 100644 --- a/ios/ExpensifyCash/Info.plist +++ b/ios/ExpensifyCash/Info.plist @@ -30,7 +30,7 @@ CFBundleVersion - 1.0.52.2 + 1.0.52.3 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/ExpensifyCashTests/Info.plist b/ios/ExpensifyCashTests/Info.plist index 8d70e8535798..868555e91380 100644 --- a/ios/ExpensifyCashTests/Info.plist +++ b/ios/ExpensifyCashTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.0.52.2 + 1.0.52.3 diff --git a/package-lock.json b/package-lock.json index 8252f88b629c..33403ea2c20b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "expensify.cash", - "version": "1.0.52-2", + "version": "1.0.52-3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index c1d4b9ed3137..10dd13e91951 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "expensify.cash", - "version": "1.0.52-2", + "version": "1.0.52-3", "author": "Expensify, Inc.", "homepage": "https://expensify.cash", "description": "Expensify.cash is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",