From 8d8745b00f4d788ca932d0ad981f161dc16fab7d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 14 Jul 2021 15:57:22 -0600 Subject: [PATCH 01/14] merge main --- src/components/IOUConfirmationList.js | 16 ++++++++++++++++ src/libs/Network.js | 10 +++++++--- src/libs/actions/PersonalDetails.js | 2 +- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/components/IOUConfirmationList.js b/src/components/IOUConfirmationList.js index 3c4bcefc44e4..4005ec320423 100755 --- a/src/components/IOUConfirmationList.js +++ b/src/components/IOUConfirmationList.js @@ -88,12 +88,19 @@ const propTypes = { /** Whether or not the IOU step is loading (creating the IOU Report) */ loading: PropTypes.bool, }), + + /** Information about the network */ + network: PropTypes.shape({ + /** Is the network currently offline or not */ + isOffline: PropTypes.bool, + }), }; const defaultProps = { iou: {}, onUpdateComment: null, comment: '', + network: {}, }; // Gives minimum height to offset the height of @@ -274,8 +281,14 @@ class IOUConfirmationList extends Component { + {this.props.network.isOffline && ( + + {this.props.translate('session.offlineMessage')} + + )}