Cogoport / cogo-toast

Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
https://cogoport.github.io/cogo-toast
MIT License
673 stars 1 forks source link

Change Toast text prop type to allow react elements #25

Closed mondul closed 5 years ago

mondul commented 5 years ago

After updating I'm getting this warning:

Warning: Failed prop type: Invalid prop `text` of type `object` supplied to `Toast`, expected `string`.
    in Toast (created by ToastContainer)
    in ToastContainer

Currently I'm showing my errors as a list like:

cogoToast.error(<>
    <div>* Error 1</div>
    <div>* Error 2</div>
</>)
anmdotdev commented 5 years ago

Fixed and merged in #26 in v3.2.0