mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-23 00:08:23 +00:00
rm redundant language providers
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import { Boundary } from "@/components/boundary";
|
||||
import { Button } from "@/components/button";
|
||||
import { LanguageProvider } from "@/components/language-provider";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { useEffect } from "react";
|
||||
|
||||
@@ -14,7 +13,6 @@ export default function Error({ error, reset }: any) {
|
||||
const t = useTranslations("error");
|
||||
|
||||
return (
|
||||
<LanguageProvider>
|
||||
<Boundary labels={["Login Error"]} color="red">
|
||||
<div className="space-y-4">
|
||||
<div className="text-sm text-red-500 dark:text-red-500">
|
||||
@@ -25,6 +23,5 @@ export default function Error({ error, reset }: any) {
|
||||
</div>
|
||||
</div>
|
||||
</Boundary>
|
||||
</LanguageProvider>
|
||||
);
|
||||
}
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { LanguageProvider } from "@/components/language-provider";
|
||||
import { BrandingSettings } from "@zitadel/proto/zitadel/settings/v2/branding_settings_pb";
|
||||
import { getLocale, getTranslations } from "next-intl/server";
|
||||
import { Alert, AlertType } from "../../alert";
|
||||
@@ -9,7 +8,6 @@ export async function linkingFailed(branding?: BrandingSettings) {
|
||||
const t = await getTranslations({ locale, namespace: "idp" });
|
||||
|
||||
return (
|
||||
<LanguageProvider>
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>{t("linkingError.title")}</h1>
|
||||
@@ -22,6 +20,5 @@ export async function linkingFailed(branding?: BrandingSettings) {
|
||||
</div>
|
||||
</div>
|
||||
</DynamicTheme>
|
||||
</LanguageProvider>
|
||||
);
|
||||
}
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { LanguageProvider } from "@/components/language-provider";
|
||||
import { BrandingSettings } from "@zitadel/proto/zitadel/settings/v2/branding_settings_pb";
|
||||
import { getLocale, getTranslations } from "next-intl/server";
|
||||
import { Alert, AlertType } from "../../alert";
|
||||
@@ -12,7 +11,6 @@ export async function loginFailed(
|
||||
const t = await getTranslations({ locale, namespace: "idp" });
|
||||
|
||||
return (
|
||||
<LanguageProvider>
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>{t("loginError.title")}</h1>
|
||||
@@ -24,6 +22,5 @@ export async function loginFailed(
|
||||
)}
|
||||
</div>
|
||||
</DynamicTheme>
|
||||
</LanguageProvider>
|
||||
);
|
||||
}
|
||||
|
@@ -1,4 +1,3 @@
|
||||
import { LanguageProvider } from "@/components/language-provider";
|
||||
import { BrandingSettings } from "@zitadel/proto/zitadel/settings/v2/branding_settings_pb";
|
||||
import { getLocale, getTranslations } from "next-intl/server";
|
||||
import { DynamicTheme } from "../../dynamic-theme";
|
||||
@@ -14,7 +13,6 @@ export async function loginSuccess(
|
||||
const t = await getTranslations({ locale, namespace: "idp" });
|
||||
|
||||
return (
|
||||
<LanguageProvider>
|
||||
<DynamicTheme branding={branding}>
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
<h1>{t("loginSuccess.title")}</h1>
|
||||
@@ -27,6 +25,5 @@ export async function loginSuccess(
|
||||
/>
|
||||
</div>
|
||||
</DynamicTheme>
|
||||
</LanguageProvider>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user