From 846d00fd492a4720ea0a98ec096fd12160e99270 Mon Sep 17 00:00:00 2001 From: Kevin Silva Date: Mon, 5 Feb 2024 15:05:50 +0100 Subject: [PATCH] SONAR-21566 - Change password after first login adopts new MIUI --- .../main/js/app/components/ResetPassword.tsx | 49 +++++++++++-------- .../components/common/ResetPasswordForm.tsx | 3 ++ 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx index 40593835182..2feeaad91a9 100644 --- a/server/sonar-web/src/main/js/app/components/ResetPassword.tsx +++ b/server/sonar-web/src/main/js/app/components/ResetPassword.tsx @@ -17,6 +17,13 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { + FlagMessage, + LargeCenteredLayout, + PageContentFontWrapper, + SubHeading, + Title, +} from 'design-system'; import * as React from 'react'; import { Helmet } from 'react-helmet-async'; import ResetPasswordForm from '../../components/common/ResetPasswordForm'; @@ -29,29 +36,29 @@ export interface ResetPasswordProps { currentUser: LoggedInUser; } -export function ResetPassword({ currentUser }: ResetPasswordProps) { +export function ResetPassword({ currentUser }: Readonly) { return ( -
- -
-

{translate('my_account.reset_password')}

-

- {translate('my_account.reset_password.explain')} -

- -
-

{translate('my_profile.password.title')}

- - { - // Force a refresh for the backend to handle additional redirects. - window.location.href = `${getBaseUrl()}/`; - }} - /> + + + +
+
+ {translate('my_account.reset_password')} + + {translate('my_account.reset_password.explain')} + + {translate('my_profile.password.title')} + { + // Force a refresh for the backend to handle additional redirects. + window.location.href = `${getBaseUrl()}/`; + }} + /> +
-
-
+ + ); } diff --git a/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx b/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx index b282209f32f..bf14308c9e1 100644 --- a/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx +++ b/server/sonar-web/src/main/js/components/common/ResetPasswordForm.tsx @@ -91,6 +91,7 @@ export default function ResetPasswordForm({