From 2484bdcc6fc48c75dbcf0315bf97e93de17ceb86 Mon Sep 17 00:00:00 2001 From: "Jason M. Hasperhoven" Date: Mon, 4 Nov 2024 18:03:03 +0400 Subject: [PATCH] Add ReactNode to Toast description prop type (#1899) * Add ReactNode prop type to ToastProps * Add changeset * Remove string from type --- .changeset/forty-pumpkins-eat.md | 5 +++++ packages/ui/src/Toast/open.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/forty-pumpkins-eat.md diff --git a/.changeset/forty-pumpkins-eat.md b/.changeset/forty-pumpkins-eat.md new file mode 100644 index 0000000000..d677d28ad8 --- /dev/null +++ b/.changeset/forty-pumpkins-eat.md @@ -0,0 +1,5 @@ +--- +'@penumbra-zone/ui': minor +--- + +Add ReactNode proptype to description Toast prop diff --git a/packages/ui/src/Toast/open.ts b/packages/ui/src/Toast/open.ts index e36adb1806..2de1cd6a27 100644 --- a/packages/ui/src/Toast/open.ts +++ b/packages/ui/src/Toast/open.ts @@ -16,7 +16,7 @@ const toastFnMap: Record = { export interface ToastProps { type: ToastType; message: string; - description?: string; + description?: ReactNode; persistent?: boolean; dismissible?: boolean; action?: ExternalToast['action'];