forked from ddrilling/asb_cloud_front
fix notifications
This commit is contained in:
parent
1dbe047902
commit
a6bf82eafe
@ -11,9 +11,9 @@ const typeDictionary = {
|
||||
* @param body string или ReactNode
|
||||
* @param type для параметра типа. Допустимые значение 'error', 'warning', 'info'
|
||||
*/
|
||||
export default function Notification(body, type='info'){
|
||||
export default function notify(body, type='info'){
|
||||
|
||||
notification.info({
|
||||
notification[type]({
|
||||
description: body,
|
||||
message: typeDictionary[type],
|
||||
type,
|
Loading…
Reference in New Issue
Block a user