0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Removed unused imports and logs

This commit is contained in:
Rishabh 2022-04-21 15:17:56 +05:30
parent 3cfc530b37
commit e64684655b
2 changed files with 0 additions and 19 deletions

View file

@ -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});

View file

@ -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 (
<header className='gh-portal-detail-header'>
<BackButton brandColor={brandColor} hidden={!lastPage} onClick={(e) => {
onAction('back');
}} />
</header>
);
}
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