|
|
@ -1,7 +1,6 @@ |
|
|
|
import React from 'react'; |
|
|
|
import Notification from 'rc-notification'; |
|
|
|
import Icon from '../icon'; |
|
|
|
import warning from 'warning'; |
|
|
|
|
|
|
|
let defaultDuration = 1.5; |
|
|
|
let defaultTop; |
|
|
@ -60,7 +59,6 @@ export default { |
|
|
|
}, |
|
|
|
// Departed usage, please use warning() |
|
|
|
warn(content, duration, onClose) { |
|
|
|
warning(false, 'message.warn() is departed, please use message.warning()'); |
|
|
|
return notice(content, duration, 'warning', onClose); |
|
|
|
}, |
|
|
|
warning(content, duration, onClose) { |
|
|
|