From fc450248c5a3d7308e2999835427825b17bc9dff Mon Sep 17 00:00:00 2001 From: Ascari Date: Mon, 19 Mar 2018 22:36:23 -0600 Subject: [PATCH 1/2] Removed console.logs from frontend --- frontend/src/containers/AddFundsContainer.js | 1 - frontend/src/containers/DonatePage.js | 2 +- frontend/src/containers/LoginTopBar.js | 1 - frontend/src/lib/storage.js | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/containers/AddFundsContainer.js b/frontend/src/containers/AddFundsContainer.js index 274db235..bcb3645d 100644 --- a/frontend/src/containers/AddFundsContainer.js +++ b/frontend/src/containers/AddFundsContainer.js @@ -86,7 +86,6 @@ export function createManualDonation() { }; delete attributes.amountText; delete attributes.amount; - console.log(">>> attributes", attributes); return validateAddFundsRequest(attributes) .then(() => addFundsToCollective(collective.slug, { diff --git a/frontend/src/containers/DonatePage.js b/frontend/src/containers/DonatePage.js index 93d44d81..6087461c 100644 --- a/frontend/src/containers/DonatePage.js +++ b/frontend/src/containers/DonatePage.js @@ -53,7 +53,7 @@ export class DonatePage extends Component { this.state = { view: 'default' }; this.tier = (this.props.tier.description) ? this.props.tier : getTier(this.props.tier, collective.tiers) || this.props.tier; const verb = this.props.params.verb || 'donate'; - console.log(">>> this.tier", this.tier, "this.props", this.props, "collective.tiers", collective.tiers, "getTier", getTier(this.props.tier, collective.tiers)); + if (!this.tier.name || this.tier.presets && this.tier.presets.length > 1) { Object.assign(this.tier, { name: "custom", diff --git a/frontend/src/containers/LoginTopBar.js b/frontend/src/containers/LoginTopBar.js index 7e4e361d..1b7d7c58 100644 --- a/frontend/src/containers/LoginTopBar.js +++ b/frontend/src/containers/LoginTopBar.js @@ -100,7 +100,6 @@ export class LoginTopBar extends Component { componentDidMount() { this.onClickOutsideRef = this.onClickOutside.bind(this); const urlParams = getQueryParams(); - console.log(">>> url query params: ", urlParams); if (urlParams.referral) { storage.set('referral', urlParams.referral, 48 * 60 * 60 * 1000); // we keep the referral for 48h or until we receive a new ?referral= } diff --git a/frontend/src/lib/storage.js b/frontend/src/lib/storage.js index 1158ecad..00b80577 100644 --- a/frontend/src/lib/storage.js +++ b/frontend/src/lib/storage.js @@ -8,7 +8,6 @@ function get(key) { if (!entry) return; try { const obj = JSON.parse(entry); - console.log(">>> storage: object found for ", key, obj); if (Number(obj.expire) < Date.now()) { console.error(">>> entry for ", key, "has expired"); return; From e2978b9799ac0650ac29dc5d1eccfda22db392dc Mon Sep 17 00:00:00 2001 From: Ascari Date: Mon, 19 Mar 2018 22:47:45 -0600 Subject: [PATCH 2/2] Ensure disabled mailchimp section button does not change color when hovered. --- frontend/src/css/components/MailChimpInputSection.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/css/components/MailChimpInputSection.css b/frontend/src/css/components/MailChimpInputSection.css index 2d1b4137..afd36353 100644 --- a/frontend/src/css/components/MailChimpInputSection.css +++ b/frontend/src/css/components/MailChimpInputSection.css @@ -36,7 +36,7 @@ font-size: 16px; font-weight: bold; text-align: center; - color: #ffffff; + color: #fff; text-transform: uppercase; background-color: #d6d6d6; &.-valid { @@ -49,6 +49,9 @@ cursor: pointer; opacity: .94; } + &[disabled]:hover { + color: #fff; + } } form { margin: auto;