Skip to content

Commit

Permalink
Dynamic policy and terms agreement text on signup page based on idp (o…
Browse files Browse the repository at this point in the history
…mnistrate-oss#218)

Dynamic agreement to policy and terms text based on idp

Signed-off-by: sharmaamits <[email protected]>
Co-authored-by: sharmaamits <[email protected]>
  • Loading branch information
rushil95 and sharmaamits authored Jun 28, 2024
1 parent ee6269d commit 99c5bc3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/features/Signup/SignupPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ const SignupPage = (props) => {
}
}

let policyAgreementText = `By creating your account, you agree to our`;
if (showGoogleLoginButton && showGithubLoginButton) {
policyAgreementText = `By creating your account manually or using your Google or GitHub account to sign up, you agree to our`;
} else if (showGoogleLoginButton) {
policyAgreementText = `By creating your account manually or using your Google account to sign up, you agree to our`;
} else if (showGithubLoginButton) {
policyAgreementText = `By creating your account manually or using your Github account to sign up, you agree to our`;
}
let invitationInfo = {};
if (email || org || orgUrl) {
if (email) {
Expand Down Expand Up @@ -349,8 +357,7 @@ const SignupPage = (props) => {
color="#A0AEC0"
textAlign="center"
>
By creating your account manually or using your Google or GitHub
account to sign up, you agree to our{" "}
{policyAgreementText}{" "}
<Link
target="_blank"
href="/terms-of-use"
Expand All @@ -366,7 +373,7 @@ const SignupPage = (props) => {
>
Privacy Policy
</Link>
.

</Typography>
{/* Signup Link */}
<Typography
Expand Down

0 comments on commit 99c5bc3

Please sign in to comment.