0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Added newsletter descriptions

refs https://github.com/TryGhost/Team/issues/1440
This commit is contained in:
Djordje Vlaisavljevic 2022-03-23 15:52:08 +01:00
parent 76158d41af
commit d9a9f0e90c
3 changed files with 7 additions and 3 deletions

View file

@ -25,6 +25,7 @@ function NewsletterPrefSection({newsletter}) {
<section>
<div className='gh-portal-list-detail'>
<h3>{newsletter.name}</h3>
<p>{newsletter.description}</p>
</div>
<div>
<Switch id={newsletter.id} onToggle={(e) => {
@ -80,6 +81,7 @@ export default function AccountEmailPage() {
isDestructive={true}
style={{width: '100%'}}
/>
<p style={{textAlign: 'center', marginTop: '12px', marginBottom: '0', color: 'var(--grey6)'}}>Unsubscribing from emails will not cancel your paid subscription to The Chinese Cinema</p>
</div>
</footer>
</div>

View file

@ -350,7 +350,7 @@ function EmailPreferencesAction() {
return (
<section>
<div className='gh-portal-list-detail'>
<h3>Email Preference</h3>
<h3>Email Preferences</h3>
</div>
<button className='gh-portal-btn gh-portal-btn-list' onClick={(e) => {
onAction('switchPage', {

View file

@ -108,11 +108,13 @@ export const site = getSiteData({
newsletters: [
{
id: 'weekly',
name: 'Weekly Rundown'
name: 'Weekly Rundown',
description: 'Best links from previous week every Monday'
},
{
id: 'daily',
name: 'Daily Brief'
name: 'Daily Brief',
description: 'One email every day'
}
]
});