From 562f28e8b9d02a1760314f4ee0af1ab5e62ffc7d Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Sat, 28 Mar 2020 10:04:48 +0300 Subject: [PATCH] fix: update supporter badge logic (#38461) * fix: update supporter badge logic * fix: update snapshot --- client/src/components/profile/Profile.js | 6 +++++- .../profile/__snapshots__/Profile.test.js.snap | 14 +++++++++----- client/src/components/profile/components/Camper.js | 5 ++--- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index 1d8084ac70..852bc56461 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -20,6 +20,7 @@ const propTypes = { isLocked: PropTypes.bool, showAbout: PropTypes.bool, showCerts: PropTypes.bool, + showDonation: PropTypes.bool, showHeatMap: PropTypes.bool, showLocation: PropTypes.bool, showName: PropTypes.bool, @@ -97,6 +98,7 @@ function renderProfile(user) { profileUI: { showAbout = false, showCerts = false, + showDonation = false, showHeatMap = false, showLocation = false, showName = false, @@ -126,12 +128,14 @@ function renderProfile(user) { isDonating } = user; + console.log(showDonation); + return ( renders correctly 1`] = `
- string's avatar +
+ string's avatar +
@@ -87,7 +86,7 @@ function Camper({
- {avatar} +
{avatar}