Skip to content

Commit

Permalink
Merge pull request #445 from memser-spaceport/fix/details-page-irl-co…
Browse files Browse the repository at this point in the history
…ntribution

fix: scroll issue in signup page when navigated from login view
  • Loading branch information
Thangaraj-Ideas2it authored Dec 19, 2024
2 parents e81dd04 + 5aba82c commit b487caa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions components/core/login/auth-info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ const AuthInfo = () => {
}
};

const handleSignUpClick = () => {
analytics.onSignUpBtnClicked();
onClose();
window.location.href = PAGE_ROUTES.SIGNUP;
};

return (
<>
<div className="authinfo" data-testid="authinfo-container">
Expand All @@ -68,9 +74,9 @@ const AuthInfo = () => {
</button>
<div className="authinfo__dialog__box__signup">
<span>Not registered yet?</span>
<Link style={{ color: '#156FF7', fontWeight: 500 }} href={PAGE_ROUTES.SIGNUP}>
<div style={{ color: '#156FF7', fontWeight: 500, cursor: 'pointer' }} onClick={handleSignUpClick}>
Click here to sign up
</Link>
</div>
</div>
<button onClick={onClose}>
<img width={20} height={20} src="/icons/close-rounded-black.svg" className="authinfo__dialog__box__close" alt="close" />
Expand Down

0 comments on commit b487caa

Please sign in to comment.