anim: remove hero signal

* BottomSheet: remove hero support
* use StackedRouter's hero support instead
This commit is contained in:
thislight 2024-11-19 17:49:49 +08:00
parent 8588a17bd0
commit 15974af792
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 3 additions and 144 deletions

View file

@ -10,8 +10,6 @@ import {
import { type mastodon } from "masto";
import { vibrate } from "../platform/hardware";
import { useDefaultSession } from "../masto/clients";
import { useHeroSource } from "../platform/anim";
import { HERO as BOTTOM_SHEET_HERO } from "../material/BottomSheet";
import { setCache as setTootBottomSheetCache } from "./TootBottomSheet";
import RegularToot, {
findElementActionable,
@ -53,7 +51,6 @@ const TootList: Component<{
onChangeToot: (id: string, value: mastodon.v1.Status) => void;
}> = (props) => {
const session = useDefaultSession();
const heroSrc = useHeroSource();
const [expandedThreadId, setExpandedThreadId] = createSignal<string>();
const { push } = useNavigator();
@ -124,9 +121,6 @@ const TootList: Component<{
console.warn("no account info?");
return;
}
if (heroSrc) {
heroSrc[1]((x) => ({ ...x, [BOTTOM_SHEET_HERO]: srcElement }));
}
const acct = `${inf.username}@${p.site}`;
setTootBottomSheetCache(acct, toot);