From 309fe14f80f26c702301a6e323643d917353bfb2 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Wed, 26 Jun 2024 14:46:40 +0700 Subject: [PATCH 1/2] Update: Fix toast --- lib/components/toast/toast.component.tsx | 2 +- lib/components/toast/toast.stories.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/toast/toast.component.tsx b/lib/components/toast/toast.component.tsx index 6bce80c..0454fb8 100644 --- a/lib/components/toast/toast.component.tsx +++ b/lib/components/toast/toast.component.tsx @@ -138,7 +138,7 @@ export const ToastComponent = memo((props: ToastComponentProps) => { className={toastClasses} onClose={close} onClick={onClick} - {...(icon ? { icon } : {})} + {...("icon" in props ? { icon } : {})} extra={extra} style={style} /> diff --git a/lib/components/toast/toast.stories.tsx b/lib/components/toast/toast.stories.tsx index 99fe049..2d6e2e0 100644 --- a/lib/components/toast/toast.stories.tsx +++ b/lib/components/toast/toast.stories.tsx @@ -1,12 +1,12 @@ import type { Meta, StoryObj } from "@storybook/react"; -import { Flex } from "../flex/flex"; -import { Button } from "../button/button"; import { ToastComponent, ToastOptions, createStandaloneToast, useToast, } from "."; +import { Button } from "../button/button"; +import { Flex } from "../flex/flex"; const meta = { title: "FEEDBACK/Toast/useToast", From 32694f7c36c934d9486b279d018a7ae5e3c4e7f7 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Wed, 26 Jun 2024 14:46:53 +0700 Subject: [PATCH 2/2] Main 2.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9a9f537..63d9c34 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zeni-ui", "private": false, - "version": "2.1.1", + "version": "2.1.2", "type": "module", "main": "dist/main.js", "types": "dist/main.d.ts",