accounts/stores: added useAccts
This commit is contained in:
parent
9f83b223c4
commit
8ae0768c42
2 changed files with 19 additions and 4 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
untrack,
|
||||
onMount,
|
||||
} from "solid-js";
|
||||
import { $accounts } from "../accounts/stores";
|
||||
import { $accounts, useAccts } from "../accounts/stores";
|
||||
import { useDocumentTitle } from "../utils";
|
||||
import { useStore } from "@nanostores/solid";
|
||||
import { useMastoClientFor } from "../masto/clients";
|
||||
|
@ -152,7 +152,7 @@ const TimelinePanel: Component<{
|
|||
const Home: Component = () => {
|
||||
let panelList: HTMLDivElement;
|
||||
useDocumentTitle("Timelines");
|
||||
const accounts = useStore($accounts);
|
||||
const accounts = useAccts();
|
||||
const now = createTimeSource();
|
||||
|
||||
const client = useMastoClientFor(() => accounts()[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue