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 <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-04-22 10:34:29 +00:00
1 parent c0f8a355e3
commit 9fdaaed100
1 file changed
+1
@@ -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);