Custom Loading Icon issue
Cybearnaut opened this issue Β· comments
Cybearnaut commented
Describe the feature / bug π:
the custom icons
property got some problems, where the class name for loading
does not match the css
which breaks the loading
effect on toast.promise
example:
import { toast, Toaster } from "sonner";
// Component
<Toaster
icons={{
loading: <MyLoadingIcon />
}}
/>
// Calling toast.promise function
toast.promise(myPromise, {
loading: "Loading",
success: "Login Successfully",
error: "Login Fail",
});
Here is the quick fix of it
honeypaw@189ce92