From 4d62ed46cc65b77ec12673d202ec82f99ea63fe7 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 30 Mar 2024 14:14:42 +0800 Subject: [PATCH] chore: tweak words --- .../components/ExploreSidebar/UsersSection.tsx | 16 +++++----------- web/src/components/PersonalStatistics.tsx | 6 +++--- web/src/components/RenameTagDialog.tsx | 9 +++++---- web/src/locales/en.json | 4 +--- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/web/src/components/ExploreSidebar/UsersSection.tsx b/web/src/components/ExploreSidebar/UsersSection.tsx index f4bb0251..c78da12c 100644 --- a/web/src/components/ExploreSidebar/UsersSection.tsx +++ b/web/src/components/ExploreSidebar/UsersSection.tsx @@ -22,11 +22,9 @@ const UsersSection = () => { return ( users.length > 0 && (
-
- Users - - - +
+ Users +
{users.map((user) => (
{ className="w-full flex flex-row justify-start items-center px-2 py-1.5 hover:bg-gray-100 dark:hover:bg-zinc-900 rounded-lg" > - -
- - {user.nickname || user.username} - -
+ + {user.nickname || user.username}
))} diff --git a/web/src/components/PersonalStatistics.tsx b/web/src/components/PersonalStatistics.tsx index b3175dae..0afe9b07 100644 --- a/web/src/components/PersonalStatistics.tsx +++ b/web/src/components/PersonalStatistics.tsx @@ -43,21 +43,21 @@ const PersonalStatistics = (props: Props) => {
- {t("common.days")} + Days
{days}
- {t("common.memos")} + Memos
{isRequesting ? : {memoAmount}}
- {t("common.tags")} + Tags
{tags}
diff --git a/web/src/components/RenameTagDialog.tsx b/web/src/components/RenameTagDialog.tsx index 4d868461..5d722733 100644 --- a/web/src/components/RenameTagDialog.tsx +++ b/web/src/components/RenameTagDialog.tsx @@ -75,12 +75,13 @@ const RenameTagDialog: React.FC = (props: Props) => { onChange={handleTagNameInputChange} />
- - All your memos with this tag will be updated. - If the number of related memos is large, it will take longer and the server load will become higher. + + +

All your memos with this tag will be updated.

+
-
+
diff --git a/web/src/locales/en.json b/web/src/locales/en.json index 6d58c8ef..ad7bb739 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -62,9 +62,7 @@ "search": "Search", "role": "Role", "description": "Description", - "statistics": "Statistics", - "days": "Days", - "memos": "Memos" + "statistics": "Statistics" }, "router": { "go-to-home": "Go to Home",