From 4e9f4aab89c83e48f9b34d5c089c250a47552b6b Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Wed, 26 Jun 2024 14:40:55 +0700 Subject: [PATCH] Main 2.1.1 - fix toast icon --- lib/components/toast/toast.component.tsx | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/toast/toast.component.tsx b/lib/components/toast/toast.component.tsx index cff1e38..6bce80c 100644 --- a/lib/components/toast/toast.component.tsx +++ b/lib/components/toast/toast.component.tsx @@ -134,11 +134,11 @@ export const ToastComponent = memo((props: ToastComponentProps) => { title={title} isClosable={isClosable} status={status} - icon={icon} variant={variant} className={toastClasses} onClose={close} onClick={onClick} + {...(icon ? { icon } : {})} extra={extra} style={style} /> diff --git a/package.json b/package.json index bd40679..9a9f537 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zeni-ui", "private": false, - "version": "2.1.0", + "version": "2.1.1", "type": "module", "main": "dist/main.js", "types": "dist/main.d.ts",