From 8ce36362785066ddbabd76e15b59f54c9a0ca63e Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 30 May 2025 00:20:43 +0400 Subject: [PATCH] feat: update toast duration --- src/lib/toast-utils.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/toast-utils.ts b/src/lib/toast-utils.ts index 88a20a5..e1534b9 100644 --- a/src/lib/toast-utils.ts +++ b/src/lib/toast-utils.ts @@ -73,22 +73,22 @@ export function showToast(props: ToastProps & { id?: string }) { if ("stage" in props && props.stage === "downloading") { duration = Number.POSITIVE_INFINITY; } else if ("stage" in props && props.stage === "completed") { - duration = 3000; // Shorter duration for completed downloads + duration = 3000; } else { - duration = 8000; // 8 seconds for extracting/verifying + duration = 20000; } break; case "version-update": - duration = 15000; // 15 seconds instead of infinite + duration = 15000; break; case "success": - duration = 3000; // Shorter success duration + duration = 3000; break; case "error": - duration = 5000; // Reasonable error duration + duration = 10000; break; default: - duration = 4000; + duration = 5000; } }