Change Toast text prop type to allow react elements
Closed this issue · 1 comments
mondul commented
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>
</>)