@choice-ui/react 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -176,7 +176,7 @@ const ToasterItem = memo(
|
|
|
176
176
|
setSwipeOffset({ x: 0, y: 0 });
|
|
177
177
|
setSwipeDirection(null);
|
|
178
178
|
});
|
|
179
|
-
const displayIcon = getToastIcon(toast.type);
|
|
179
|
+
const displayIcon = toast.icon ?? getToastIcon(toast.type);
|
|
180
180
|
const isBehind = index > 0 && !expanded;
|
|
181
181
|
const isTop = position.startsWith("top");
|
|
182
182
|
const scale = expanded ? 1 : Math.max(0, 1 - index * 0.05);
|
package/package.json
CHANGED