From 94755474aed4cc45ae86ed0c87934511716269f7 Mon Sep 17 00:00:00 2001 From: MadhuMosip Date: Mon, 23 Sep 2024 10:45:24 +0530 Subject: [PATCH] MOSIP-35899 using visable css instead conditions to hide input fields Signed-off-by: MadhuMosip --- .../login/pages/LoginUpdatePassword.tsx | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/LoginUpdatePassword.tsx b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/LoginUpdatePassword.tsx index cc304bd..e895f7f 100644 --- a/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/LoginUpdatePassword.tsx +++ b/keycloak-artemis/mosip_keycloak_theme/src/keycloak-theme/login/pages/LoginUpdatePassword.tsx @@ -95,7 +95,7 @@ export default function LoginUpdatePassword(props: PageProps
- {!isReloadBtn && <> +
{(message !== undefined && message.type !== 'warning' && openErrTab) && (
{/* {message.type === "success" && } @@ -235,22 +235,19 @@ export default function LoginUpdatePassword(props: PageProps
- } - {isReloadBtn && ( -
- -

Password reset completed successfully!

-
- setReloadBtn(true)} - onClick={showSuccessMsg} - value={msgStr("goToDashboard")} - /> -
- )} - +
+
+ +

Password reset completed successfully!

+
+ setReloadBtn(true)} + onClick={showSuccessMsg} + value={msgStr("goToDashboard")} + /> +
);