-
-
+
+
+
+
+
+
+
+
+
@@ -1237,7 +1256,7 @@ function TokenCard({ token, code, timeLeft, showCode, onCopy, onEdit, onDelete,
{t.edit}
-
+
{t.delete}
diff --git a/components/ui/toast.tsx b/components/ui/toast.tsx
index 40eedf5..926acbc 100644
--- a/components/ui/toast.tsx
+++ b/components/ui/toast.tsx
@@ -31,7 +31,7 @@ const toastVariants = cva(
variant: {
default: 'border bg-background text-foreground',
destructive:
- 'destructive group border-destructive bg-destructive text-destructive-foreground',
+ 'destructive group border-red-500 bg-red-500 text-white dark:border-red-600 dark:bg-red-600',
},
},
defaultVariants: {
@@ -44,11 +44,19 @@ const Toast = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef &
VariantProps
->(({ className, variant, ...props }, ref) => {
+>(({ className, variant, onPointerDown, onMouseDown, ...props }, ref) => {
return (
{
+ e.stopPropagation()
+ onPointerDown?.(e)
+ }}
+ onMouseDown={(e) => {
+ e.stopPropagation()
+ onMouseDown?.(e)
+ }}
{...props}
/>
)
@@ -73,14 +81,24 @@ ToastAction.displayName = ToastPrimitives.Action.displayName
const ToastClose = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
->(({ className, ...props }, ref) => (
+>(({ className, onClick, ...props }, ref) => (
{
+ e.stopPropagation()
+ onClick?.(e)
+ }}
+ onPointerDown={(e) => {
+ e.stopPropagation()
+ }}
+ onMouseDown={(e) => {
+ e.stopPropagation()
+ }}
{...props}
>