Skip to content

Commit

Permalink
fix: replace missing heroui parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequielnick committed Feb 8, 2025
1 parent b102c4c commit 356914a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/src/components/sider/conn-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ const ConnCard: React.FC<Props> = (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])

useEffect(() => {
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])
Expand Down

0 comments on commit 356914a

Please sign in to comment.