timolins / react-hot-toast

Smoking Hot React Notifications 🔥
https://react-hot-toast.com
MIT License
9.84k stars 331 forks source link

Nothing important #178

Closed valflrt closed 2 years ago

valflrt commented 2 years ago

I think custom className for toasts wasn't implemented (maybe I'm wrong), but I looked a little bit in the code and I think if this:

        return (
          <div
            ref={ref}
            className={t.visible ? activeClass : ''} // I think something is missing here
            key={t.id}
            style={positionStyle}
          >

is changed to:

        return (
          <div
            ref={ref}
            className={t.visible ? [activeClass, t.className ?? ""].join(" ") : ''}
            key={t.id}
            style={positionStyle}
          >

It would work.

Thank you !

Sorry for bothering if I'm wrong

valflrt commented 2 years ago

I actually tried it, it doesn't work... I'm looking for a solution

valflrt commented 2 years ago

I am dumb. wasn't looking at the right element. sorry.