mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Refined copy of popup notifications
This commit is contained in:
parent
7a4c14eb1a
commit
d7dbe06760
1 changed files with 5 additions and 5 deletions
|
@ -84,19 +84,19 @@ const CloseButton = ({hide = false}) => {
|
||||||
const NotificationText = ({type, status}) => {
|
const NotificationText = ({type, status}) => {
|
||||||
if (type === 'updateNewsletter:success') {
|
if (type === 'updateNewsletter:success') {
|
||||||
return (
|
return (
|
||||||
<p> Newsletter updated! </p>
|
<p> Newsletter settings updated</p>
|
||||||
);
|
);
|
||||||
} else if (type === 'updateSubscription:success') {
|
} else if (type === 'updateSubscription:success') {
|
||||||
return (
|
return (
|
||||||
<p> Subscription updated! </p>
|
<p> Subscription plan successfully updated</p>
|
||||||
);
|
);
|
||||||
} else if (type === 'updateProfile:success') {
|
} else if (type === 'updateProfile:success') {
|
||||||
return (
|
return (
|
||||||
<p> Profile Updated! </p>
|
<p>Profile updated</p>
|
||||||
);
|
);
|
||||||
} else if (type === 'updateProfile:failed') {
|
} else if (type === 'updateProfile:failed') {
|
||||||
return (
|
return (
|
||||||
<p> Failed to update profile! </p>
|
<p>Failed to update profile</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const label = status === 'success' ? 'Success' : 'Failed';
|
const label = status === 'success' ? 'Success' : 'Failed';
|
||||||
|
@ -131,7 +131,7 @@ export default class PopupNotification extends React.Component {
|
||||||
|
|
||||||
handlePopupNotification({popupNotification}) {
|
handlePopupNotification({popupNotification}) {
|
||||||
if (popupNotification.autoHide) {
|
if (popupNotification.autoHide) {
|
||||||
const {duration = 2000} = popupNotification;
|
const {duration = 2400} = popupNotification;
|
||||||
this.timeoutId = setTimeout(() => {
|
this.timeoutId = setTimeout(() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
className: 'slideout',
|
className: 'slideout',
|
||||||
|
|
Loading…
Add table
Reference in a new issue