From 0fcee9baf2b3c2cb38f73ef4ea9233599eed66cb Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Aug 2023 01:33:09 +0800 Subject: [PATCH] chore: update font family --- web/src/components/DemoBanner.tsx | 2 +- web/src/components/Header.tsx | 4 +- web/src/components/setting/AccountSection.tsx | 2 +- web/src/pages/Account.tsx | 37 ------------------- web/src/pages/SignIn.tsx | 2 +- web/src/pages/SignUp.tsx | 2 +- 6 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 web/src/pages/Account.tsx diff --git a/web/src/components/DemoBanner.tsx b/web/src/components/DemoBanner.tsx index 366e1d3..1b517f3 100644 --- a/web/src/components/DemoBanner.tsx +++ b/web/src/components/DemoBanner.tsx @@ -14,7 +14,7 @@ const DemoBanner: React.FC = () => { return (
- ✨Slash - An open source, self-hosted bookmarks and link sharing platform + ✨🔗 Slash - An open source, self-hosted bookmarks and link sharing platform {
- - + + Slash
diff --git a/web/src/components/setting/AccountSection.tsx b/web/src/components/setting/AccountSection.tsx index 90068ff..5a486ec 100644 --- a/web/src/components/setting/AccountSection.tsx +++ b/web/src/components/setting/AccountSection.tsx @@ -19,7 +19,7 @@ const AccountSection: React.FC = () => { {isAdmin && Admin}

- Email: + Email: {currentUser.email}

diff --git a/web/src/pages/Account.tsx b/web/src/pages/Account.tsx deleted file mode 100644 index 48985e5..0000000 --- a/web/src/pages/Account.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { Button } from "@mui/joy"; -import { useState } from "react"; -import ChangePasswordDialog from "../components/ChangePasswordDialog"; -import EditUserinfoDialog from "../components/EditUserinfoDialog"; -import useUserStore from "../stores/v1/user"; - -const Account: React.FC = () => { - const currentUser = useUserStore().getCurrentUser(); - const [showEditUserinfoDialog, setShowEditUserinfoDialog] = useState(false); - const [showChangePasswordDialog, setShowChangePasswordDialog] = useState(false); - - return ( - <> -
-

{currentUser.nickname}

-

- Email: - {currentUser.email} -

-
- - -
-
- - {showEditUserinfoDialog && setShowEditUserinfoDialog(false)} />} - - {showChangePasswordDialog && setShowChangePasswordDialog(false)} />} - - ); -}; - -export default Account; diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx index b1480b4..0439a1f 100644 --- a/web/src/pages/SignIn.tsx +++ b/web/src/pages/SignIn.tsx @@ -74,7 +74,7 @@ const SignIn: React.FC = () => {
logo - Slash + Slash
diff --git a/web/src/pages/SignUp.tsx b/web/src/pages/SignUp.tsx index 549150f..0d7792e 100644 --- a/web/src/pages/SignUp.tsx +++ b/web/src/pages/SignUp.tsx @@ -78,7 +78,7 @@ const SignUp: React.FC = () => {
logo - Slash + Slash

Create your account