anim: remove hero signal
* BottomSheet: remove hero support * use StackedRouter's hero support instead
This commit is contained in:
parent
8588a17bd0
commit
15974af792
3 changed files with 3 additions and 144 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue