Skip to content

Commit 72faa7c

Browse files
[PAYG-dashboard] Add Gitpod Enterprise callout on login page for PAYG users (#19777)
* [PAYG-dashboard] Add Gitpod Enterprise callout on login page for PAYG users * Align the styles * nit fix
1 parent 67ee931 commit 72faa7c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

components/dashboard/src/Login.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { cn } from "@podkit/lib/cn";
2323
import { userClient } from "./service/public-api";
2424
import { ProductLogo } from "./components/ProductLogo";
2525
import { useIsDataOps } from "./data/featureflag-query";
26+
import { isGitpodIo } from "./utils";
2627

2728
export function markLoggedIn() {
2829
document.cookie = GitpodCookie.generateCookie(window.location.hostname);
@@ -170,6 +171,19 @@ export const Login: FC<LoginProps> = ({ onLoggedIn }) => {
170171
</LoginButton>
171172
))
172173
)}
174+
{isGitpodIo() && (
175+
<div className="text-pk-content-tertiary py-3">
176+
<span className="text-sm font-bold">Need SSO? </span>
177+
<a
178+
className="text-sm gp-link"
179+
href="https://www.gitpod.io/docs/enterprise"
180+
target="_blank"
181+
rel="noreferrer"
182+
>
183+
Try Gitpod Enterprise
184+
</a>
185+
</div>
186+
)}
173187
<SSOLoginForm
174188
onSuccess={authorizeSuccessful}
175189
singleOrgMode={!!authProviders.data && authProviders.data.length === 0}

0 commit comments

Comments
 (0)