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:
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);
|
||||
|
||||
Reference in new issue
Block a user