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

Applied success and error states to notifications

This commit is contained in:
Peter Zimon 2020-09-18 17:12:36 +02:00
parent 0a40206116
commit 1a52840789

View file

@ -58,7 +58,7 @@ class NotificationContent extends React.Component {
const {notificationType: type, notificationStatus: status} = this.context;
return (
<div className='gh-portal-notification-wrapper'>
<div className='gh-portal-notification'>
<div className={'gh-portal-notification' + (status ? ' success' : ' error')}>
<NotificationText type={type} status={status} />
<CloseIcon className='gh-portal-notification-closeicon' alt='Close' onClick={e => this.onNotificationClose(e)} />
</div>