fix notifications

This commit is contained in:
Фролов 2021-05-31 15:11:29 +05:00
parent 1dbe047902
commit a6bf82eafe

View File

@ -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,