From 356914a5ed62c9dd2e7563f40a0ea66dcdd28ba2 Mon Sep 17 00:00:00 2001 From: ezequielnick <107352853+ezequielnick@users.noreply.github.com> Date: Sat, 8 Feb 2025 08:37:39 +0800 Subject: [PATCH] fix: replace missing heroui parameter --- src/renderer/src/components/sider/conn-card.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/sider/conn-card.tsx b/src/renderer/src/components/sider/conn-card.tsx index 8d809c72..94a9f99b 100644 --- a/src/renderer/src/components/sider/conn-card.tsx +++ b/src/renderer/src/components/sider/conn-card.tsx @@ -48,8 +48,8 @@ const ConnCard: React.FC = (props) => { useEffect(() => { setChartColor( match - ? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-primary-foreground')})` - : `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-foreground')})` + ? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-primary-foreground')})` + : `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-foreground')})` ) }, [theme, systemTheme, match]) @@ -57,8 +57,8 @@ const ConnCard: React.FC = (props) => { setTimeout(() => { setChartColor( match - ? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-primary-foreground')})` - : `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-foreground')})` + ? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-primary-foreground')})` + : `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-foreground')})` ) }, 200) }, [customTheme])