From b992d07f3e29d7acb20b484c3528ff8a7ac28004 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 24 Sep 2022 10:05:15 +0800 Subject: [PATCH] chore: update memo detail header --- web/src/pages/MemoDetail.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx index 89feeb93..76061b6b 100644 --- a/web/src/pages/MemoDetail.tsx +++ b/web/src/pages/MemoDetail.tsx @@ -93,11 +93,7 @@ const MemoDetail = () => {
{dayjs(state.memo.createdTs).locale(i18n.language).format("YYYY/MM/DD HH:mm:ss")} - by - - {state.memo.creator.name} - - {user?.id === state.memo.creatorId && ( + {user?.id === state.memo.creatorId ? ( { } actionsClassName="!w-28 !left-0 !p-1" /> + ) : ( + <> + by + + {state.memo.creator.name} + + )}
undefined} />