diff --git a/src/Layout.tsx b/src/Layout.tsx index 6382a47..4cedf3f 100644 --- a/src/Layout.tsx +++ b/src/Layout.tsx @@ -10,8 +10,9 @@ import { ProposeSign } from "./components/forms/SigningForms" import Avatar from "./components/Avatar" import { displayProfile } from "@welshman/util" import { useActivePubkey, useProfile } from "./hooks" +import { isDesktop } from "./lib/media" -function SidebarContent(props: { onNew: () => void }) { +function SidebarContent(props: { onNew: () => void; onNavigate?: () => void }) { const pubkey = useActivePubkey() const shortKey = () => `${pubkey().slice(0, 8)}…${pubkey().slice(-4)}` const profile = useProfile(pubkey) @@ -19,28 +20,15 @@ function SidebarContent(props: { onNew: () => void }) { return (
-
- -
-
- +
- setShowProposeQuorum(true)} /> + setShowProposeQuorum(true)} onNavigate={() => setDrawerOpen(false)} /> {/* Desktop: 3-column layout */}