diff --git a/ghost/portal/src/actions.js b/ghost/portal/src/actions.js index 880718d49c..10b8807d7b 100644 --- a/ghost/portal/src/actions.js +++ b/ghost/portal/src/actions.js @@ -97,8 +97,6 @@ async function signup({data, state, api}) { try { const {plan, email, name, newsletters, offerId} = data; if (plan.toLowerCase() === 'free') { - /*eslint-disable no-console */ - console.log('Sending data', data); await api.member.sendMagicLink(data); } else { await api.member.checkoutPlan({plan, email, name, newsletters, offerId}); diff --git a/ghost/portal/src/components/pages/NewsletterSelectionPage.js b/ghost/portal/src/components/pages/NewsletterSelectionPage.js index 7a9bffae9e..48f94e27ca 100644 --- a/ghost/portal/src/components/pages/NewsletterSelectionPage.js +++ b/ghost/portal/src/components/pages/NewsletterSelectionPage.js @@ -1,6 +1,4 @@ import AppContext from '../../AppContext'; -import CloseButton from '../common/CloseButton'; -import BackButton from '../common/BackButton'; import {useContext, useState} from 'react'; import Switch from '../common/Switch'; import {getProductFromPrice, getSiteNewsletters} from '../../utils/helpers'; @@ -8,17 +6,6 @@ import ActionButton from '../common/ActionButton'; const React = require('react'); -function AccountHeader() { - const {brandColor, lastPage, onAction} = useContext(AppContext); - return ( -
-
- ); -} - function NewsletterPrefSection({newsletter, subscribedNewsletters, setSubscribedNewsletters}) { const isChecked = subscribedNewsletters.some((d) => { return d.id === newsletter?.id; @@ -104,10 +91,6 @@ export default function NewsletterSelectionPage({pageData}) { retry={retry} disabled={disabled} onClick={(e) => { - /* eslint-disable no-console */ - console.log(pageData); - console.log(subscribedNewsletters); - /* eslint-enable no-console */ let newsletters = subscribedNewsletters.map((d) => { return { id: d.id