teodosii / react-notifications-component

Delightful and highly customisable React Component to notify your users
https://teodosii.github.io/react-notifications-component/
MIT License
1.27k stars 73 forks source link

Fix shadow variables in validators.ts #89

Closed EugeneSnikhovskiy closed 3 years ago

EugeneSnikhovskiy commented 3 years ago

Hello! Thanks for great library! It works great and simple to use.

I just updated to latest 3.0.2 version and it break development in safari. I use create-react-app based project.

The problem reproduced only in livereload development server in safari browser, when build use react-notifications.dev.js from your lib.

My app failed at start with following errors

SyntaxError: Duplicate parameter 'title' not allowed in function with destructuring parameters.
SyntaxError: Duplicate parameter 'message' not allowed in function with destructuring parameters.
// And others
teodosii commented 3 years ago

Thank you, will merge it and publish new version.