Skip to content

Commit

Permalink
update toast
Browse files Browse the repository at this point in the history
  • Loading branch information
2-NOW committed Jun 29, 2024
1 parent 46d393a commit 8a5b4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/common/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function ToastUI({

export const Toast = {
alert: (message: string, onAction: () => void) => {
toast.dismiss();
toast.custom((t) => (
<ToastUI
message={message}
Expand Down
1 change: 1 addition & 0 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function RootComponent() {
expand={false}
offset={8}
visibleToasts={1}
duration={2000}
/>
<TanStackRouterDevtools position="bottom-right" />
</>
Expand Down

0 comments on commit 8a5b4ef

Please # to comment.