There was an error while loading. Please reload this page.
1 parent f928fb0 commit 0a05d3aCopy full SHA for 0a05d3a
1 file changed
apps/webapp/app/routes/storybook.toast/route.tsx
@@ -50,6 +50,33 @@ export default function Story() {
50
>
51
Trigger error toast
52
</Button>
53
+ <Button
54
+ variant="secondary/medium"
55
+ onClick={() =>
56
+ toast.custom(
57
+ (t) => (
58
+ <ToastUI
59
+ variant="agent"
60
+ title="Watch update"
61
+ message="Error error_c4b4a797 happened again — 1 new occurrence since the watch started."
62
+ t={t as string}
63
+ actionNode={
64
65
+ variant="secondary/small"
66
+ className="my-2 self-start"
67
+ onClick={() => toast.dismiss(t as string)}
68
+ >
69
+ Open chat
70
+ </Button>
71
+ }
72
+ />
73
+ ),
74
+ { duration: Infinity }
75
+ )
76
77
78
+ Trigger agent toast
79
80
81
<Toaster />
82
</div>
0 commit comments