Skip to content

Commit

Permalink
feat(ui/toast): auto dismiss toast in 2 sec
Browse files Browse the repository at this point in the history
  • Loading branch information
sawaYch committed Mar 6, 2024
1 parent a0d78d4 commit ff5559a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ui/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Toaster() {
const { toasts } = useToast();

return (
<ToastProvider>
<ToastProvider duration={2000}>
{toasts.map(function ({ id, title, description, action, ...props }) {
return (
<Toast key={id} {...props}>
Expand Down

0 comments on commit ff5559a

Please sign in to comment.