From 6f80b785249da0ef91f74c740cb559d2a4ba38a7 Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Fri, 14 Apr 2023 11:01:10 +0800 Subject: [PATCH] refactor: save tip and blank placeholder --- src/common/component/BlankPlaceholder.tsx | 8 ++++---- src/common/component/SaveTip.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/component/BlankPlaceholder.tsx b/src/common/component/BlankPlaceholder.tsx index 97c73cda..4cd2d324 100644 --- a/src/common/component/BlankPlaceholder.tsx +++ b/src/common/component/BlankPlaceholder.tsx @@ -43,9 +43,9 @@ const BlankPlaceholder: FC = ({ type = "chat" }) => { return ( <>
-
+

{t("title", { name: server.name })}

-

+

= ({ type = "chat" }) => { } } }> - {server.description ?? t("desc")} + {server.description ? server.description : t("desc")} - {isAdmin && + {isAdmin && }

diff --git a/src/common/component/SaveTip.tsx b/src/common/component/SaveTip.tsx index f76d8db1..9c61f30b 100644 --- a/src/common/component/SaveTip.tsx +++ b/src/common/component/SaveTip.tsx @@ -13,7 +13,7 @@ const SaveTip: FC = ({ saveHandler, resetHandler }) => { const { t } = useTranslation("setting"); // const btnClass=clsx("") return ( -
{t('save_tip')}