juliancwirko / react-s-alert

Alerts / Notifications for React with rich configuration options
https://www.npmjs.com/package/react-s-alert
MIT License
649 stars 75 forks source link

Cannot use Component instead of string message #27

Closed mihaimariusbaciu closed 7 years ago

mihaimariusbaciu commented 7 years ago

Using react-s-alert version 1.2.0

Warning: Invalid prop message of type object supplied to SAlertContent, expected string.

What I found is that the SAlertContent propTypes have different values than the ones in the master branch message: _react2.default.PropTypes.string.isRequired,.

It seems that the code on npm was not updated only the version.

Thank you for your time!

juliancwirko commented 7 years ago

Hi, you can try version 1.2.1 Oh, and thanks :)

mihaimariusbaciu commented 7 years ago

Works like a charm. I will close the issue.

Thank you!