How can I add icon (from font awsome) into my notification #234
AzharUddinSheikh
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to achieve to add custom icon when firing
toast
for example whendeleting
item I want totoast
anotify
with anicon
from font awesome 4.7FOR EXAMPLE
const handleDelete = (movie : movie) => { setAllMovies(allMovies.filter(m => m != movie)); toast.success({ message:'${movie.title} is been deleted successfully', options:{icon:<i class="fa fa-trash-o"></i> }); }
NOTE
I don't want to pollute my TOASTER container by adding
icon
in it<Toaster position="top-right" toastOptions={{ duration: 5000, icon : '👍' }} />
Beta Was this translation helpful? Give feedback.
All reactions