minor fixes

This commit is contained in:
Ren Amamiya
2023-06-01 14:44:33 +07:00
parent 4e132582b0
commit ea3e5a69f6
15 changed files with 326 additions and 248 deletions

View File

@@ -1,14 +1,19 @@
import { FeedBlock } from "../components/feed";
import { FeedBlock } from "@app/space/components/blocks/feed";
import { FollowingBlock } from "@app/space/components/blocks/following";
import { ImageBlock } from "@app/space/components/blocks/image";
import { CreateBlockModal } from "@app/space/components/create";
import { FollowingBlock } from "@app/space/components/following";
import { ImageBlock } from "@app/space/components/image";
import { useActiveAccount } from "@stores/accounts";
import { getBlocks } from "@utils/storage";
import useSWR from "swr";
const fetcher = ([, id]) => getBlocks(1);
const fetcher = ([, id]) => getBlocks(id);
export function Page() {
const { data }: any = useSWR("blocks", fetcher);
const account = useActiveAccount((state: any) => state.account);
const { data }: any = useSWR(
account ? ["blocks", account.id] : null,
fetcher,
);
return (
<div className="h-full w-full flex flex-nowrap overflow-x-auto overflow-y-hidden">