From f737b24b6fc4d94320f8862f689b70e631ff520d Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Fri, 15 Nov 2019 01:35:21 +0530 Subject: [PATCH] feat(donate): remove themes from donate pages --- .../Donation/components/DonateFormChildViewForHOC.js | 12 ++++-------- client/src/components/layouts/Default.js | 10 +++++++--- client/utils/gatsby/layoutSelector.js | 7 +++++++ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/client/src/components/Donation/components/DonateFormChildViewForHOC.js b/client/src/components/Donation/components/DonateFormChildViewForHOC.js index 888159ffac..39ab2a896c 100644 --- a/client/src/components/Donation/components/DonateFormChildViewForHOC.js +++ b/client/src/components/Donation/components/DonateFormChildViewForHOC.js @@ -26,8 +26,7 @@ const propTypes = { isSignedIn: PropTypes.bool, stripe: PropTypes.shape({ createToken: PropTypes.func.isRequired - }), - theme: PropTypes.string + }) }; const initialState = { donationState: { @@ -39,7 +38,7 @@ const initialState = { const mapStateToProps = createSelector( userSelector, - ({ email, theme }) => ({ email, theme }) + ({ email }) => ({ email }) ); class DonateFormChildViewForHOC extends Component { @@ -176,7 +175,7 @@ class DonateFormChildViewForHOC extends Component { renderDonateForm() { const { isFormValid } = this.state; - const { theme, getDonationButtonLabel } = this.props; + const { getDonationButtonLabel } = this.props; return (
@@ -191,10 +190,7 @@ class DonateFormChildViewForHOC extends Component { value={this.getUserEmail()} /> - +