add profile block to space

This commit is contained in:
Ren Amamiya
2023-06-19 11:32:52 +07:00
parent 8baba4b1e2
commit f944693a2a
5 changed files with 118 additions and 39 deletions

View File

@@ -1 +0,0 @@
export { LayoutUser as Layout } from "./layout";

View File

@@ -1,14 +0,0 @@
import { MultiAccounts } from "@shared/multiAccounts";
import { Navigation } from "@shared/navigation";
export function LayoutUser({ children }: { children: React.ReactNode }) {
return (
<div className="flex w-screen h-screen">
<div className="relative flex flex-row shrink-0">
<MultiAccounts />
<Navigation />
</div>
<div className="w-full h-full">{children}</div>
</div>
);
}

View File

@@ -1,13 +0,0 @@
import { usePageContext } from "@utils/hooks/usePageContext";
export function Page() {
const pageContext = usePageContext();
const searchParams: any = pageContext.urlParsed.search;
const pubkey = searchParams.pubkey;
return (
<div className="h-full w-full flex flex-nowrap overflow-x-auto overflow-y-hidden scrollbar-hide">
<p>{pubkey}</p>
</div>
);
}