From 3057f70c1c189861bbe94ff0bde92075a855a551 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 23 Aug 2021 14:18:27 +0800 Subject: [PATCH] Move 'update password' into a subpage --- ui/component/router/view.jsx | 2 ++ ui/component/settingAccount/view.jsx | 12 +++++--- ui/component/settingAccountPassword/view.jsx | 31 ++++++++------------ ui/constants/pages.js | 1 + ui/page/passwordUpdate/index.js | 3 ++ ui/page/passwordUpdate/view.jsx | 13 ++++++++ 6 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 ui/page/passwordUpdate/index.js create mode 100644 ui/page/passwordUpdate/view.jsx diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index fb32391a1..eb6f74fcf 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -82,6 +82,7 @@ const TagsFollowingManagePage = lazyImport(() => ); const TagsFollowingPage = lazyImport(() => import('page/tagsFollowing' /* webpackChunkName: "secondary" */)); const TopPage = lazyImport(() => import('page/top' /* webpackChunkName: "secondary" */)); +const UpdatePasswordPage = lazyImport(() => import('page/passwordUpdate' /* webpackChunkName: "passwordUpdate" */)); const Welcome = lazyImport(() => import('page/welcome' /* webpackChunkName: "secondary" */)); const YoutubeSyncPage = lazyImport(() => import('page/youtubeSync' /* webpackChunkName: "secondary" */)); @@ -294,6 +295,7 @@ function AppRouter(props: Props) { + {isAuthenticated && ( -
- -
+ +