Home: fix could not jump to sign in page
This commit is contained in:
parent
69f7f37a2c
commit
bf06cfe2e1
1 changed files with 38 additions and 34 deletions
|
@ -11,7 +11,7 @@ import {
|
||||||
Suspense,
|
Suspense,
|
||||||
Match,
|
Match,
|
||||||
Switch as JsSwitch,
|
Switch as JsSwitch,
|
||||||
ErrorBoundary
|
ErrorBoundary,
|
||||||
} from "solid-js";
|
} from "solid-js";
|
||||||
import { useDocumentTitle } from "../utils";
|
import { useDocumentTitle } from "../utils";
|
||||||
import { type mastodon } from "masto";
|
import { type mastodon } from "masto";
|
||||||
|
@ -126,9 +126,11 @@ const TimelinePanel: Component<{
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary fallback={(err, reset) => {
|
<ErrorBoundary
|
||||||
return <p>Oops: {String(err)}</p>
|
fallback={(err, reset) => {
|
||||||
}}>
|
return <p>Oops: {String(err)}</p>;
|
||||||
|
}}
|
||||||
|
>
|
||||||
<PullDownToRefresh
|
<PullDownToRefresh
|
||||||
linkedElement={scrollLinked()}
|
linkedElement={scrollLinked()}
|
||||||
loading={snapshot.loading}
|
loading={snapshot.loading}
|
||||||
|
@ -404,6 +406,7 @@ const Home: ParentComponent = (props) => {
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<TimeSourceProvider value={now}>
|
<TimeSourceProvider value={now}>
|
||||||
|
<Show when={!!client()}>
|
||||||
<div class="panel-list" ref={panelList!}>
|
<div class="panel-list" ref={panelList!}>
|
||||||
<div class="tab-panel">
|
<div class="tab-panel">
|
||||||
<div>
|
<div>
|
||||||
|
@ -438,6 +441,7 @@ const Home: ParentComponent = (props) => {
|
||||||
</div>
|
</div>
|
||||||
<div></div>
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
|
</Show>
|
||||||
</TimeSourceProvider>
|
</TimeSourceProvider>
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<HeroSourceProvider value={[heroSrc, setHeroSrc]}>
|
<HeroSourceProvider value={[heroSrc, setHeroSrc]}>
|
||||||
|
|
Loading…
Reference in a new issue