Skip to content

Commit

Permalink
fix: show toast in center of screen (#14690)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Apr 22, 2024
1 parent c0f8a35 commit 9fdaaed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/components/toast/showToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9fdaaed

Please sign in to comment.