diff --git a/src/app/note/components/base.tsx b/src/app/note/components/base.tsx index 8be72505..c631cf34 100644 --- a/src/app/note/components/base.tsx +++ b/src/app/note/components/base.tsx @@ -15,7 +15,7 @@ export const NoteBase = ({ event }: { event: any }) => { {event.parent_id && event.parent_id !== event.event_id && }
-
+
diff --git a/src/app/note/components/parent.tsx b/src/app/note/components/parent.tsx index c40c89af..bfaa974c 100644 --- a/src/app/note/components/parent.tsx +++ b/src/app/note/components/parent.tsx @@ -39,11 +39,11 @@ export const NoteParent = memo(function NoteParent({ id }: { id: string }) { return (
-
+
{data ? ( <> -
+
diff --git a/src/app/note/components/replies/form.tsx b/src/app/note/components/replies/form.tsx index 6079f5c5..b7fc5f94 100644 --- a/src/app/note/components/replies/form.tsx +++ b/src/app/note/components/replies/form.tsx @@ -36,7 +36,7 @@ export default function NoteReplyForm({ id }: { id: string }) { }; return ( -
+
{account?.pubkey} diff --git a/src/app/note/components/replies/item.tsx b/src/app/note/components/replies/item.tsx index 532d7510..0a557643 100644 --- a/src/app/note/components/replies/item.tsx +++ b/src/app/note/components/replies/item.tsx @@ -9,7 +9,7 @@ export default function Reply({ data }: { data: any }) {
-
+
diff --git a/src/app/note/components/rootNote.tsx b/src/app/note/components/rootNote.tsx index ceb01f02..0f38914b 100644 --- a/src/app/note/components/rootNote.tsx +++ b/src/app/note/components/rootNote.tsx @@ -76,7 +76,7 @@ export const RootNote = memo(function RootNote({ id, fallback }: { id: string; f {data ? ( <> -
+
diff --git a/src/app/note/components/user/default.tsx b/src/app/note/components/user/default.tsx index 167b6711..0132c821 100644 --- a/src/app/note/components/user/default.tsx +++ b/src/app/note/components/user/default.tsx @@ -5,7 +5,6 @@ import { shortenKey } from '@lume/utils/shortenKey'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; -import Skeleton from 'react-loading-skeleton'; dayjs.extend(relativeTime); @@ -13,21 +12,19 @@ export const NoteDefaultUser = ({ pubkey, time }: { pubkey: string; time: number const { user } = useProfile(pubkey); return ( -
-
+
+
{pubkey}
-
-
-
- {user?.display_name || user?.name || } -
-
+
+
+ {user?.display_name || user?.name ||
} +
{user?.nip05 || shortenKey(pubkey)} diff --git a/src/app/note/components/user/reply.tsx b/src/app/note/components/user/reply.tsx index 99c196f4..16f1dd16 100644 --- a/src/app/note/components/user/reply.tsx +++ b/src/app/note/components/user/reply.tsx @@ -12,7 +12,7 @@ export default function NoteReplyUser({ pubkey, time }: { pubkey: string; time: const { user } = useProfile(pubkey); return ( -
+
-
+
{pubkey}
-
+
{user?.display_name || user?.name || } diff --git a/src/app/note/pages/index.page.tsx b/src/app/note/pages/index.page.tsx index 853d292b..e6019320 100644 --- a/src/app/note/pages/index.page.tsx +++ b/src/app/note/pages/index.page.tsx @@ -42,8 +42,7 @@ export function Page() {
- {error &&
failed to load
} - {!data ? ( + {!data && error ? (