useSignedInProfiles: removed

- use useSessions() instead
This commit is contained in:
thislight 2024-11-04 17:09:20 +08:00
parent 832a59031a
commit dde0c249f4
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
3 changed files with 8 additions and 37 deletions

View file

@ -30,10 +30,10 @@ import { $settings } from "../settings/stores";
import { useStore } from "@nanostores/solid";
import { HeroSourceProvider, type HeroSource } from "../platform/anim";
import { useNavigate } from "@solidjs/router";
import { useSignedInProfiles } from "../masto/acct";
import { setCache as setTootBottomSheetCache } from "./TootBottomSheet";
import TrendTimelinePanel from "./TrendTimelinePanel";
import TimelinePanel from "./TimelinePanel";
import { useSessions } from "../masto/clients";
const Home: ParentComponent = (props) => {
let panelList: HTMLDivElement;
@ -42,11 +42,11 @@ const Home: ParentComponent = (props) => {
const settings$ = useStore($settings);
const [profiles] = useSignedInProfiles();
const profiles = useSessions();
const profile = () => {
const all = profiles();
if (all.length > 0) {
return all[0].inf;
return all[0].account.inf;
}
};
const client = () => {