Skip to content

Commit

Permalink
update toast time limit
Browse files Browse the repository at this point in the history
  • Loading branch information
dickreuter committed Jan 30, 2025
1 parent 25bd8a0 commit 5a689a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 210 deletions.
208 changes: 0 additions & 208 deletions src/components/auth/Signin.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/ui/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ToastClose = React.forwardRef<
<ToastPrimitives.Close
ref={ref}
className={cn(
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:!opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
className
)}
toast-close=""
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as React from "react";
import type { ToastActionElement, ToastProps } from "@/components/ui/toast";

const TOAST_LIMIT = 5;
const TOAST_REMOVE_DELAY = 1000000;
const TOAST_REMOVE_DELAY = 3000;

type ToasterToast = ToastProps & {
id: string;
Expand Down

0 comments on commit 5a689a6

Please sign in to comment.