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:
@@ -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',
|
||||
|
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user