From b06ce61c1fb5dd0b30fe9252105768790ca533a9 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Wed, 25 Sep 2019 12:09:16 +0300 Subject: [PATCH 1/2] Fixed percent bar and cover image issues --- .../profileSummary/view/profileSummaryView.js | 12 ++++++++++-- src/containers/profileContainer.js | 6 +++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/profileSummary/view/profileSummaryView.js b/src/components/profileSummary/view/profileSummaryView.js index 6901dccd7..eee2092d6 100644 --- a/src/components/profileSummary/view/profileSummaryView.js +++ b/src/components/profileSummary/view/profileSummaryView.js @@ -103,7 +103,15 @@ class ProfileSummaryView extends PureComponent { const isColumn = rowLength && DEVICE_WIDTH / rowLength <= 7.3; const followButtonIcon = !isFollowing ? 'account-plus' : 'account-minus'; - const coverImageUrl = getResizedImage(get(about, 'cover_image'), 400); + let coverImageUrl = getResizedImage(get(about, 'cover_image'), 400); + + if (!coverImageUrl) { + coverImageUrl = isDarkTheme + ? require('../../../assets/dark_cover_image.png') + : require('../../../assets/default_cover_image.png'); + } else { + coverImageUrl = { uri: coverImageUrl }; + } dropdownOptions.push(!isMuted ? 'MUTE' : 'UNMUTE'); @@ -126,7 +134,7 @@ class ProfileSummaryView extends PureComponent { Date: Fri, 27 Sep 2019 15:01:48 +0300 Subject: [PATCH 2/2] Removed selectedUser state --- src/containers/profileContainer.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/containers/profileContainer.js b/src/containers/profileContainer.js index 4da30d758..8b979abec 100644 --- a/src/containers/profileContainer.js +++ b/src/containers/profileContainer.js @@ -330,7 +330,6 @@ class ProfileContainer extends Component { quickProfile, user, username, - selectedUser, } = this.state; const { currency, isDarkTheme, isLoggedIn, navigation, children } = this.props; const activePage = get(navigation.state.params, 'state', 0);