Cogoport/cogo-toast

Change Toast text prop type to allow react elements

Closed this issue · 1 comments

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>
</>)

Fixed and merged in #26 in v3.2.0