Remove legacy trust center page

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-28 21:50:44 +04:00
parent 7e92d5a165
commit ee3b0728bc
6 changed files with 8 additions and 481 deletions

View File

@@ -1,31 +0,0 @@
import { lazy } from "@probo/react-lazy";
import {
type AppRoute,
loaderFromQueryLoader,
withQueryRef,
} from "@probo/routes";
import { loadQuery } from "react-relay";
import type { TrustCenterGraphQuery } from "#/__generated__/core/TrustCenterGraphQuery.graphql";
import { PageSkeleton } from "#/components/skeletons/PageSkeleton";
import { coreEnvironment } from "#/environments";
import { trustCenterQuery } from "../hooks/graph/TrustCenterGraph";
export const trustCenterRoutes = [
{
path: "trust-center",
Fallback: PageSkeleton,
loader: loaderFromQueryLoader(({ organizationId }) =>
loadQuery<TrustCenterGraphQuery>(
coreEnvironment,
trustCenterQuery,
{ organizationId },
{ fetchPolicy: "network-only" },
),
),
Component: withQueryRef(
lazy(() => import("#/pages/organizations/trustCenter/TrustCenterPage")),
),
},
] satisfies AppRoute[];