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,