From 6b3748e2a37408b76732376743555a3ca0bfa3b9 Mon Sep 17 00:00:00 2001 From: boojack Date: Thu, 29 Jun 2023 23:17:01 +0800 Subject: [PATCH] chore: update setting page styles (#1863) * chore: update setting page styles * chore: update --- web/src/components/Header.tsx | 5 +- .../components/Settings/MyAccountSection.tsx | 27 ++++--- web/src/components/Settings/SystemSection.tsx | 67 ---------------- .../components/UpdateLocalStorageDialog.tsx | 4 +- web/src/less/setting.less | 4 +- web/src/less/settings/my-account-section.less | 17 ---- web/src/locales/en.json | 2 +- web/src/locales/zh-Hans.json | 77 +++++++++---------- web/src/pages/Setting.tsx | 2 +- 9 files changed, 62 insertions(+), 143 deletions(-) delete mode 100644 web/src/less/settings/my-account-section.less diff --git a/web/src/components/Header.tsx b/web/src/components/Header.tsx index 4fce5736..325f01aa 100644 --- a/web/src/components/Header.tsx +++ b/web/src/components/Header.tsx @@ -134,10 +134,11 @@ const Header = () => {
diff --git a/web/src/components/Settings/MyAccountSection.tsx b/web/src/components/Settings/MyAccountSection.tsx index 8a03483d..368ad156 100644 --- a/web/src/components/Settings/MyAccountSection.tsx +++ b/web/src/components/Settings/MyAccountSection.tsx @@ -1,3 +1,4 @@ +import { Button, Input, Textarea } from "@mui/joy"; import { useTranslation } from "react-i18next"; import { useUserStore } from "@/store/module"; import { showCommonDialog } from "../Dialog/CommonDialog"; @@ -5,7 +6,6 @@ import showChangePasswordDialog from "../ChangePasswordDialog"; import Icon from "../Icon"; import showUpdateAccountDialog from "../UpdateAccountDialog"; import UserAvatar from "../UserAvatar"; -import "@/less/settings/my-account-section.less"; const MyAccountSection = () => { const { t } = useTranslation(); @@ -47,18 +47,23 @@ const MyAccountSection = () => { -
+

{t("setting.account-section.openapi-title")}

-

{openAPIRoute}

- + + +