mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
allow toaster to render custom description
This commit is contained in:
@@ -38,8 +38,10 @@ export const Toaster = () => {
|
||||
) : null }
|
||||
<Stack gap="0" flex="1" maxWidth="100%">
|
||||
{ toast.title && <Toast.Title>{ toast.title }</Toast.Title> }
|
||||
{ toast.description && (
|
||||
<Toast.Description>{ toast.description }</Toast.Description>
|
||||
{ (toast.meta?.renderDescription || toast.description) && (
|
||||
<Toast.Description>
|
||||
{ toast.meta?.renderDescription?.() || toast.description }
|
||||
</Toast.Description>
|
||||
) }
|
||||
</Stack>
|
||||
{ toast.action && (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@blockscout/ui-toolkit",
|
||||
"version": "0.0.1-alpha.4",
|
||||
"version": "2.2.0-alpha",
|
||||
"description": "A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
Reference in New Issue
Block a user