useSignedInProfiles: removed
- use useSessions() instead
This commit is contained in:
parent
832a59031a
commit
dde0c249f4
3 changed files with 8 additions and 37 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue