mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
🏷️ fix types
This commit is contained in:
@@ -3,7 +3,7 @@ import { GetIdpResponse as GetOrgIdpResponse } from "@server/routers/idp";
|
|||||||
import { AxiosResponse } from "axios";
|
import { AxiosResponse } from "axios";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { authCookieHeader } from "@app/lib/api/cookies";
|
import { authCookieHeader } from "@app/lib/api/cookies";
|
||||||
import { HorizontalTabs } from "@app/components/HorizontalTabs";
|
import { HorizontalTabs, TabItem } from "@app/components/HorizontalTabs";
|
||||||
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
||||||
import { getTranslations } from "next-intl/server";
|
import { getTranslations } from "next-intl/server";
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
|||||||
redirect(`/${params.orgId}/settings/idp`);
|
redirect(`/${params.orgId}/settings/idp`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const navItems: HorizontalTabs = [
|
const navItems: TabItem[] = [
|
||||||
{
|
{
|
||||||
title: t("general"),
|
title: t("general"),
|
||||||
href: `/${params.orgId}/settings/idp/${params.idpId}/general`
|
href: `/${params.orgId}/settings/idp/${params.idpId}/general`
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { GetIdpResponse } from "@server/routers/idp";
|
|||||||
import { AxiosResponse } from "axios";
|
import { AxiosResponse } from "axios";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { authCookieHeader } from "@app/lib/api/cookies";
|
import { authCookieHeader } from "@app/lib/api/cookies";
|
||||||
import { HorizontalTabs } from "@app/components/HorizontalTabs";
|
import { HorizontalTabs, TabItem } from "@app/components/HorizontalTabs";
|
||||||
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
|
||||||
import { getTranslations } from "next-intl/server";
|
import { getTranslations } from "next-intl/server";
|
||||||
|
|
||||||
@@ -28,13 +28,13 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
|||||||
redirect("/admin/idp");
|
redirect("/admin/idp");
|
||||||
}
|
}
|
||||||
|
|
||||||
const navItems: HorizontalTabs = [
|
const navItems: TabItem[] = [
|
||||||
{
|
{
|
||||||
title: t('general'),
|
title: t("general"),
|
||||||
href: `/admin/idp/${params.idpId}/general`
|
href: `/admin/idp/${params.idpId}/general`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('orgPolicies'),
|
title: t("orgPolicies"),
|
||||||
href: `/admin/idp/${params.idpId}/policies`
|
href: `/admin/idp/${params.idpId}/policies`
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -42,8 +42,8 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SettingsSectionTitle
|
<SettingsSectionTitle
|
||||||
title={t('idpSettings', { idpName: idp.idp.name })}
|
title={t("idpSettings", { idpName: idp.idp.name })}
|
||||||
description={t('idpSettingsDescription')}
|
description={t("idpSettingsDescription")}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="space-y-6">
|
<div className="space-y-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user