From aafa599b6917eb4ec9f5ee67ac56b5953dd4ada0 Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 6 Feb 2025 17:04:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReplyNoteList/index.tsx | 6 +++--- src/components/ui/switch.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/ReplyNoteList/index.tsx b/src/components/ReplyNoteList/index.tsx index b1cf30ff..14fff7b6 100644 --- a/src/components/ReplyNoteList/index.tsx +++ b/src/components/ReplyNoteList/index.tsx @@ -184,6 +184,9 @@ export default function ReplyNoteList({ event, className }: { event: NEvent; cla > {loading ? t('loading...') : until ? t('load more older replies') : null} + {replies.length === 0 && !loading && !until && ( +
{t('no replies')}
+ )} {replies.length > 0 && (loading || until) && }
{replies.map((reply) => { @@ -200,9 +203,6 @@ export default function ReplyNoteList({ event, className }: { event: NEvent; cla ) })}
- {replies.length === 0 && !loading && !until && ( -
{t('no replies')}
- )}
) diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsx index 654ff1bf..4212852e 100644 --- a/src/components/ui/switch.tsx +++ b/src/components/ui/switch.tsx @@ -9,7 +9,7 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => (