From 902feb36542210c174dcf6d45964f290446285d9 Mon Sep 17 00:00:00 2001 From: Vlada Gazizova <94864088+gazizova-vlada@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:55:23 +0300 Subject: [PATCH] Shared:IconButton:Fixed flickering of quick buttons with color when adding/hiding a column. --- packages/shared/components/icon-button/IconButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/components/icon-button/IconButton.tsx b/packages/shared/components/icon-button/IconButton.tsx index 018d31f7a2..90fa472833 100644 --- a/packages/shared/components/icon-button/IconButton.tsx +++ b/packages/shared/components/icon-button/IconButton.tsx @@ -64,7 +64,7 @@ const IconButton = ({ const [currentIconName, setCurrentIconName] = React.useState(iconName); const [currentIconColor, setCurrentIconColor] = React.useState< string | undefined - >(iconName); + >(color); const onMouseEnterAction = (e: React.MouseEvent) => { if (isDisabled) return;