From a6bf82eafe56da818b71810682f40a9ebf564f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Mon, 31 May 2021 15:11:29 +0500 Subject: [PATCH] fix notifications --- src/components/{Notification.jsx => notify.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/components/{Notification.jsx => notify.js} (86%) diff --git a/src/components/Notification.jsx b/src/components/notify.js similarity index 86% rename from src/components/Notification.jsx rename to src/components/notify.js index 1608951..e06ae0b 100644 --- a/src/components/Notification.jsx +++ b/src/components/notify.js @@ -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,