mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Added name to welcome notification
no refs.
This commit is contained in:
parent
d1c091584f
commit
7220049830
1 changed files with 2 additions and 1 deletions
|
@ -29,10 +29,11 @@ const Styles = () => {
|
|||
const NotificationText = ({type, status, context}) => {
|
||||
const signinPortalLink = getPortalLink({page: 'signin', siteUrl: context.site.url});
|
||||
const singupPortalLink = getPortalLink({page: 'signup', siteUrl: context.site.url});
|
||||
const firstname = context.member.firstname;
|
||||
if (type === 'signin' && status === 'success') {
|
||||
return (
|
||||
<p>
|
||||
Welcome back!<br />You've successfully signed in.
|
||||
Welcome back{(firstname ? ', ' + firstname : '')}!<br />You've successfully signed in.
|
||||
</p>
|
||||
);
|
||||
} else if (type === 'signin' && status === 'error') {
|
||||
|
|
Loading…
Add table
Reference in a new issue