From f394b17537202026e9e1b34cbf299faeed5a6d07 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Oct 2024 20:49:07 +0800 Subject: [PATCH] fix: update viewTransition to react router links --- frontend/web/src/components/CollectionView.tsx | 2 +- frontend/web/src/components/Header.tsx | 10 +++++----- frontend/web/src/components/ShortcutCard.tsx | 4 ++-- frontend/web/src/pages/SignIn.tsx | 2 +- frontend/web/src/pages/SignUp.tsx | 2 +- frontend/web/src/pages/WorkspaceSetting.tsx | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/web/src/components/CollectionView.tsx b/frontend/web/src/components/CollectionView.tsx index cf36f6b..644debf 100644 --- a/frontend/web/src/components/CollectionView.tsx +++ b/frontend/web/src/components/CollectionView.tsx @@ -66,7 +66,7 @@ const CollectionView = (props: Props) => {
- + {collection.title} diff --git a/frontend/web/src/components/Header.tsx b/frontend/web/src/components/Header.tsx index 760e14c..1cbe5c4 100644 --- a/frontend/web/src/components/Header.tsx +++ b/frontend/web/src/components/Header.tsx @@ -31,7 +31,7 @@ const Header: React.FC = () => {
- + Slash @@ -57,14 +57,14 @@ const Header: React.FC = () => { Shortcuts Collections @@ -88,7 +88,7 @@ const Header: React.FC = () => { {t("user.profile")} @@ -96,7 +96,7 @@ const Header: React.FC = () => { {t("settings.self")} diff --git a/frontend/web/src/components/ShortcutCard.tsx b/frontend/web/src/components/ShortcutCard.tsx index 1253e87..b27d4a4 100644 --- a/frontend/web/src/components/ShortcutCard.tsx +++ b/frontend/web/src/components/ShortcutCard.tsx @@ -45,7 +45,7 @@ const ShortcutCard = (props: Props) => { @@ -129,7 +129,7 @@ const ShortcutCard = (props: Props) => { {t("shortcut.visits", { count: shortcut.viewCount })} diff --git a/frontend/web/src/pages/SignIn.tsx b/frontend/web/src/pages/SignIn.tsx index cdd3990..f492efa 100644 --- a/frontend/web/src/pages/SignIn.tsx +++ b/frontend/web/src/pages/SignIn.tsx @@ -47,7 +47,7 @@ const SignIn: React.FC = () => { {!workspaceStore.setting.disallowUserRegistration && !workspaceStore.setting.disallowPasswordAuth && (

{"Don't have an account yet?"} - + {t("auth.sign-up")}

diff --git a/frontend/web/src/pages/SignUp.tsx b/frontend/web/src/pages/SignUp.tsx index 4163b6b..d7b1722 100644 --- a/frontend/web/src/pages/SignUp.tsx +++ b/frontend/web/src/pages/SignUp.tsx @@ -118,7 +118,7 @@ const SignUp: React.FC = () => { ) : (

{"Already has an account?"} - + {t("auth.sign-in")}

diff --git a/frontend/web/src/pages/WorkspaceSetting.tsx b/frontend/web/src/pages/WorkspaceSetting.tsx index 70cdd8b..b7a115e 100644 --- a/frontend/web/src/pages/WorkspaceSetting.tsx +++ b/frontend/web/src/pages/WorkspaceSetting.tsx @@ -34,7 +34,7 @@ const WorkspaceSetting = () => {
Current plan: {stringifyPlanType(workspaceStore.getSubscription().plan)} - +