From 9fdaaed100f94fc082545cd249fb58333f55286c Mon Sep 17 00:00:00 2001 From: Guvanch Gurbandurdyyev <82075933+guvvanch@users.noreply.github.com> Date: Mon, 22 Apr 2024 06:34:29 -0400 Subject: [PATCH] fix: show toast in center of screen (#14690) * fix: show toast in center of screen * fix: show toast in center of screen --------- Co-authored-by: Nur Ovezova Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- packages/ui/components/toast/showToast.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/components/toast/showToast.tsx b/packages/ui/components/toast/showToast.tsx index 979fa83b9e..7eb44171d1 100644 --- a/packages/ui/components/toast/showToast.tsx +++ b/packages/ui/components/toast/showToast.tsx @@ -88,6 +88,7 @@ export function showToast( // const _options: ToastOptions = typeof options === "number" ? { duration: options } : options; if (!_options.duration) _options.duration = TOAST_VISIBLE_DURATION; + if (!_options.position) _options.position = "bottom-center"; const onClose = (toastId: string) => { toast.remove(toastId);