mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Updated newsletter subscription label
no issue - Updates newsletter subscription label based on current state on profile page
This commit is contained in:
parent
1049955007
commit
d8072971b5
1 changed files with 2 additions and 1 deletions
|
@ -157,6 +157,7 @@ export default class AccountProfilePage extends React.Component {
|
|||
if (paid) {
|
||||
return null;
|
||||
}
|
||||
const label = subscribed ? 'You are subscribed to email newsletters' : 'You are not subscribed to email newsletters';
|
||||
return (
|
||||
<div style={{padding: '0 24px', display: 'flex', alignItems: 'center'}}>
|
||||
<div style={{flexGrow: 1}}>
|
||||
|
@ -169,7 +170,7 @@ export default class AccountProfilePage extends React.Component {
|
|||
color: '#666666',
|
||||
fontSize: '13px',
|
||||
lineHeight: '6px'
|
||||
}}> You are not subscribed to email newsletters </div>
|
||||
}}> {label} </div>
|
||||
</div>
|
||||
<div>
|
||||
<Switch onToggle={(e) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue