0
Fork 0
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:
Peter Zimon 2020-11-10 15:49:52 +01:00
parent d1c091584f
commit 7220049830

View file

@ -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') {