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

Added free account home to use account profile

refs https://github.com/TryGhost/members.js/issues/20

- Clicking settings on free member's account home now takes them to profile page
This commit is contained in:
Rish 2020-05-07 21:04:31 +05:30
parent fe1cb02203
commit 694ec683fe
2 changed files with 6 additions and 3 deletions

View file

@ -61,7 +61,10 @@ export default class AccountHomePage extends React.Component {
}
openSettings(e) {
// no-op
this.context.onAction('switchPage', {
page: 'accountProfile',
lastPage: 'accountHome'
});
}
openSubscribe(e) {
@ -73,7 +76,7 @@ export default class AccountHomePage extends React.Component {
renderAccountFooter() {
return (
<div style={{display: 'flex', padding: '0 24px', marginTop: '6px', color: this.context.brandColor, fontWeight: 'bold', fontSize: '13px'}}>
<div style={{display: 'flex', padding: '0 24px', marginTop: '18px', color: this.context.brandColor, fontWeight: 'bold', fontSize: '13px'}}>
<div style={{cursor: 'pointer'}} role='button'> Contact support </div>
<div style={{display: 'flex', flexGrow: 1, justifyContent: 'flex-end'}}>
<div style={{marginRight: '16px', cursor: 'pointer'}} onClick={e => this.openSettings(e)} role='button'> Settings </div>

View file

@ -33,7 +33,7 @@ export default class AccountProfilePage extends React.Component {
renderAccountFooter() {
return (
<div style={{display: 'flex', padding: '0 24px', marginTop: '42px', color: this.context.brandColor, fontWeight: 'bold', fontSize: '13px'}}>
<div style={{display: 'flex', padding: '0 24px', marginTop: '42px', color: this.context.brandColor, fontWeight: 'bold', fontSize: '13px', alignItems: 'center'}}>
<div style={{cursor: 'pointer', color: 'red'}} role='button'> Delete Account </div>
<div style={{display: 'flex', flexGrow: 1, justifyContent: 'flex-end'}}>
<ActionButton