fix: Revert "feat: Update UI of signup / login pages (#16710)" (#16801)

* Revert "feat: Update UI of signup / login pages (#16710)"

This reverts commit b879aeef09.

* revert
This commit is contained in:
Benny Joo authored and GitHub committed 2024-09-24 20:07:37 +00:00
1 parent 77af36e2af
commit 17ff01af75
6 files changed
+227 -326

No files matched your search

+6 -4
View File
@@ -4,7 +4,7 @@ import { useFormContext } from "react-hook-form";
import z from "zod";
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
import { useLastUsed } from "@calcom/lib/hooks/useLastUsed";
import { LastUsed, useLastUsed } from "@calcom/lib/hooks/useLastUsed";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
import { Button } from "@calcom/ui";
@@ -36,9 +36,10 @@ export function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Prop
return (
<Button
color="minimal"
StartIcon="lock"
color="secondary"
data-testid="saml"
className="text-brand-500 h-auto p-0 font-medium"
className="flex w-full justify-center"
onClick={async (event) => {
event.preventDefault();
@@ -64,7 +65,8 @@ export function SAMLLogin({ samlTenantID, samlProductID, setErrorMessage }: Prop
email,
});
}}>
<span>{t("saml_sso")}</span>
<span>{t("signin_with_saml_oidc")}</span>
{lastUsed === "saml" && <LastUsed />}
</Button>
);
}