0 && "mt-4")}
+ >
{!isCollapsed && (
{t(`${section.heading}`)}
diff --git a/src/components/ValidateOidcToken.tsx b/src/components/ValidateOidcToken.tsx
index 3677f625..bd862c11 100644
--- a/src/components/ValidateOidcToken.tsx
+++ b/src/components/ValidateOidcToken.tsx
@@ -56,11 +56,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
if (props.providerError?.error) {
const providerMessage =
props.providerError.description ||
- t("idpErrorOidcProviderRejected", {
- error: props.providerError.error,
- defaultValue:
- "The identity provider returned an error: {error}."
- });
+ "The identity provider returned an error: {error}.";
const suffix = props.providerError.uri
? ` (${props.providerError.uri})`
: "";
@@ -76,10 +72,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
if (!isCancelled) {
setIsProviderError(false);
setError(
- t("idpErrorOidcMissingCode", {
- defaultValue:
- "The identity provider did not return an authorization code."
- })
+ "The identity provider did not return an authorization code."
);
setLoading(false);
}
@@ -90,10 +83,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
if (!isCancelled) {
setIsProviderError(false);
setError(
- t("idpErrorOidcMissingState", {
- defaultValue:
- "The login request is missing state information. Please restart the login process."
- })
+ "The login request is missing state information. Please restart the login process."
);
setLoading(false);
}
@@ -159,12 +149,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
console.error(e);
if (!isCancelled) {
setIsProviderError(false);
- setError(
- t("idpErrorOidcTokenValidating", {
- defaultValue:
- "An unexpected error occurred. Please try again."
- })
- );
+ setError("An unexpected error occurred. Please try again.");
}
} finally {
if (!isCancelled) {
@@ -181,7 +166,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) {
}, []);
return (
-
+
diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx
index 08761eba..6ec5f0b7 100644
--- a/src/components/ui/alert.tsx
+++ b/src/components/ui/alert.tsx
@@ -11,7 +11,7 @@ const alertVariants = cva(
default: "bg-card border text-foreground",
neutral: "bg-card bg-muted border text-foreground",
destructive:
- "border-destructive/50 border bg-destructive/10 text-destructive dark:border-destructive [&>svg]:text-destructive",
+ "border-destructive/50 border bg-destructive/8 text-destructive dark:border-destructive/50 [&>svg]:text-destructive",
success:
"border-green-500/50 border bg-green-500/10 text-green-500 dark:border-success [&>svg]:text-green-500",
info: "border-blue-500/50 border bg-blue-500/10 text-blue-800 dark:text-blue-400 dark:border-blue-400 [&>svg]:text-blue-500",