1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

update Toast to toaster

This commit is contained in:
shanshuirenjia
2018-12-07 14:58:37 +08:00
parent ef838eab4d
commit 2f4b881c12
9 changed files with 44 additions and 42 deletions

View File

@@ -34,12 +34,14 @@ class Alert extends React.PureComponent {
this.toastTextTitle = css({
fontWeight: '600',
fontSize: '14px',
color: '#435a6f'
color: '#435a6f',
margin: '0',
});
this.toastTextChild = css({
fontSize: '14px',
color: '#999'
color: '#999',
margin: '0'
});
this.toastClose = css({
marginLeft: '15px',

View File

@@ -88,7 +88,7 @@ export default class ToastManager extends React.PureComponent {
title,
description: settings.description,
hasCloseButton: settings.hasCloseButton || true,
duration: settings.duration || 5,
duration: settings.duration || 2,
close: () => this.closeToast(id),
intent: settings.intent
};