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 <nur.ovezova@techguilds.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
co-authored by
Nur Ovezova
Udit Takkar
parent
c0f8a355e3
commit
9fdaaed100
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user