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

Fixed email subscription label on account home

no issue

- Hardcoded label was being used on account home for newsletter subscriptions status
- Updated to use label based on subscribed status, same as profile page
This commit is contained in:
Rish 2020-07-24 21:04:45 +05:30
parent a51052c320
commit 4b29d0ce15

View file

@ -235,6 +235,7 @@ class PaidAccountHomePage extends React.Component {
default_payment_card_last4: defaultCardLast4
} = subscriptions[0];
const label = subscribed ? 'Subscribed to email newsletters' : 'Not subscribed to email newsletters';
return (
<div className='gh-portal-list'>
<section>
@ -264,7 +265,7 @@ class PaidAccountHomePage extends React.Component {
<section>
<div className='gh-portal-list-detail'>
<h3>Newsletter</h3>
<p>Not subscribed to email newsletters</p>
<p>{label}</p>
</div>
<div>
<Switch onToggle={(e) => {