a tool for shared writing and social publishing
0

Configure Feed

Select the types of activity you want to include in your feed.

add log in to the logged out error on pub dash

celine (Apr 13, 2026, 10:54 PM EDT) e21f26a1 a18e7c58

+11 -1
+11 -1
app/lish/[did]/[publication]/dashboard/page.tsx
··· 8 8 import { NotFoundLayout } from "components/PageLayouts/NotFoundLayout"; 9 9 import PublicationDashboard from "./PublicationDashboard"; 10 10 import { normalizePublicationRecord } from "src/utils/normalizeRecords"; 11 + import { LoginModal } from "components/LoginButton"; 11 12 12 13 export async function generateMetadata(props: { 13 14 params: Promise<{ publication: string; did: string }>; ··· 37 38 if (!identity || !identity.atp_did) 38 39 return ( 39 40 <NotFoundLayout> 40 - <p>Looks like you&apos;re not logged in.</p> 41 + <p> 42 + Looks like you&apos;re not logged in.{" "} 43 + <LoginModal 44 + redirectRoute={`/lish/${params.did}/${params.publication}/dashboard`} 45 + trigger={ 46 + <div className="text-accent-contrast font-bold">Log in here</div> 47 + } 48 + /> 49 + ! 50 + </p> 41 51 <p> 42 52 If the issue persists please{" "} 43 53 <a href="mailto:contact@leaflet.pub">send us a note</a>.