mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
fix: replace missing heroui parameter
This commit is contained in:
parent
b102c4c59b
commit
356914a5ed
@ -48,8 +48,8 @@ const ConnCard: React.FC<Props> = (props) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setChartColor(
|
setChartColor(
|
||||||
match
|
match
|
||||||
? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-primary-foreground')})`
|
? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-primary-foreground')})`
|
||||||
: `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-foreground')})`
|
: `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-foreground')})`
|
||||||
)
|
)
|
||||||
}, [theme, systemTheme, match])
|
}, [theme, systemTheme, match])
|
||||||
|
|
||||||
@ -57,8 +57,8 @@ const ConnCard: React.FC<Props> = (props) => {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setChartColor(
|
setChartColor(
|
||||||
match
|
match
|
||||||
? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-primary-foreground')})`
|
? `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-primary-foreground')})`
|
||||||
: `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--nextui-foreground')})`
|
: `hsla(${getComputedStyle(document.documentElement).getPropertyValue('--heroui-foreground')})`
|
||||||
)
|
)
|
||||||
}, 200)
|
}, 200)
|
||||||
}, [customTheme])
|
}, [customTheme])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user