diff --git a/src/apps/images/index.tsx b/src/apps/images/index.tsx index d10b4b4..0015afb 100644 --- a/src/apps/images/index.tsx +++ b/src/apps/images/index.tsx @@ -76,7 +76,7 @@ export default function ImagesApp({ params, setParams, setTitle }: AppProps) { useEffect(() => { setTitle(params.id ? 'Image' : 'Images'); }, [params.id, setTitle]); if (params.id) { - return replies.refetch()} />; + return setParams({})} onRefresh={() => replies.refetch()} />; } return ; } -function PictureDetail({ event, loading, replies, onRefresh }: { event: NostrEvent | null | undefined; loading: boolean; replies: NostrEvent[]; onRefresh: () => void }) { +function PictureDetail({ event, loading, replies, onBack, onRefresh }: { event: NostrEvent | null | undefined; loading: boolean; replies: NostrEvent[]; onBack: () => void; onRefresh: () => void }) { const { user } = useCurrentUser(); - if (loading) return ; - if (!event) return ; + if (loading) return ; + if (!event) return ; const url = pictureUrl(event)!; const replyTags = [['e', event.id, '', 'root'], ['p', event.pubkey]]; - return + return
{event.content

{event.content}

{absoluteTime(event.created_at)}