Skip to content

Commit 6172c7f

Browse files
committed
fix(webapp): storybook toast page double-mounted a second Toaster
The root already mounts one; a fired toast rendered in both and the two copies stacked.
1 parent d5ec3d4 commit 6172c7f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • apps/webapp/app/routes/storybook.toast

apps/webapp/app/routes/storybook.toast/route.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Toaster, toast } from "sonner";
1+
import { toast } from "sonner";
22
import { Button } from "~/components/primitives/Buttons";
33
import { ToastUI } from "~/components/primitives/Toast";
44

@@ -77,8 +77,6 @@ export default function Story() {
7777
>
7878
Trigger agent toast
7979
</Button>
80-
81-
<Toaster />
8280
</div>
8381
);
8482
}

0 commit comments

Comments
 (0)