fix(island): 🐛 render online message for IsOnline server-side rendering
This commit is contained in:
parent
79b91aad92
commit
1f7825e22c
|
|
@ -13,7 +13,9 @@ export default function IsOnline(
|
||||||
{ online, offline }: { online?: string; offline: string },
|
{ online, offline }: { online?: string; offline: string },
|
||||||
) {
|
) {
|
||||||
if (!IS_BROWSER) {
|
if (!IS_BROWSER) {
|
||||||
return <span class={'island__is_online'}>{offline}</span>
|
return online
|
||||||
|
? <span style={{ display: 'none' }}></span>
|
||||||
|
: <span>{online}</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
const status = useSignal(true)
|
const status = useSignal(true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue