Skip to content

Commit

Permalink
MOSIP-35899 using visable css instead conditions to hide input fields
Browse files Browse the repository at this point in the history
Signed-off-by: MadhuMosip <[email protected]>
  • Loading branch information
MadhuMosip committed Sep 23, 2024
1 parent 60b09d7 commit 9475547
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function LoginUpdatePassword(props: PageProps<Extract<KcContext,
}
>
<form id="kc-passwd-update-form" className={getClassName("kcFormClass")} action={url.loginAction} method="post">
{!isReloadBtn && <>
<div className={`${!isReloadBtn ? "visible -mb-[240px]" : "invisible -mt-[230px]"}`}>
{(message !== undefined && message.type !== 'warning' && openErrTab) && (
<div className='bg-errorBg min-h-11 p-2 text-center text-errorColor font-semibold mb-3 font-inter rounded-lg px-4'>
{/* {message.type === "success" && <span className={getClassName("kcFeedbackSuccessIcon")}></span>}
Expand Down Expand Up @@ -235,22 +235,19 @@ export default function LoginUpdatePassword(props: PageProps<Extract<KcContext,
)}
</div>
</div>
</>}
{isReloadBtn && (
<div className="flex items-center flex-col font-inter">
<span><img className="h-[10rem] w-[10rem]" src={successIcon} /></span>
<p className="font-bold text-[14px] text-[#000000]">Password reset completed successfully!</p>
<hr className="w-[90%] m-8 border-[#D8D8D8]" />
<input
className="text-[#1447B2] font-bold text-[13px]"
type="submit"
// onClick={() => setReloadBtn(true)}
onClick={showSuccessMsg}
value={msgStr("goToDashboard")}
/>
</div>
)}

</div>
<div className={`flex items-center flex-col font-inter ${isReloadBtn ? "visible" : "invisible"}`}>
<span><img className="h-[10rem] w-[10rem]" src={successIcon} /></span>
<p className="font-bold text-[14px] text-[#000000]">Password reset completed successfully!</p>
<hr className="w-[90%] m-8 border-[#D8D8D8]" />
<input
className="text-[#1447B2] font-bold text-[13px]"
type="submit"
// onClick={() => setReloadBtn(true)}
onClick={showSuccessMsg}
value={msgStr("goToDashboard")}
/>
</div>
</form>
</Template>
);
Expand Down

0 comments on commit 9475547

Please sign in to comment.