This commit is contained in:
Max Peintner
2024-11-22 11:27:37 +01:00
parent 837cd4f674
commit fe615a220a
23 changed files with 74 additions and 116 deletions

View File

@@ -29,12 +29,10 @@ async function loginFailed(branding?: BrandingSettings) {
</DynamicTheme>
);
}
export default async function Page(
props: {
searchParams: Promise<Record<string | number | symbol, string | undefined>>;
params: Promise<{ provider: string }>;
}
) {
export default async function Page(props: {
searchParams: Promise<Record<string | number | symbol, string | undefined>>;
params: Promise<{ provider: string }>;
}) {
const params = await props.params;
const searchParams = await props.searchParams;
const locale = getLocale();
@@ -138,12 +136,12 @@ export default async function Page(
if (idpLink) {
return (
// TODO: possibily login user now
(<DynamicTheme branding={branding}>
<DynamicTheme branding={branding}>
<div className="flex flex-col items-center space-y-4">
<h1>{t("linkingSuccess.title")}</h1>
<div>{t("linkingSuccess.description")}</div>
</div>
</DynamicTheme>)
</DynamicTheme>
);
}
}