mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 19:28:35 +00:00
34 lines
932 B
TypeScript
34 lines
932 B
TypeScript
import { faHome } from "@fortawesome/free-solid-svg-icons";
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
|
|
import { zodValidator } from "@tanstack/zod-adapter";
|
|
import { z } from "zod";
|
|
|
|
import { SettingsPage } from "./SettingsPage";
|
|
|
|
const SettingsPageQueryParams = z.object({
|
|
selectedTab: z.string().catch("")
|
|
});
|
|
|
|
export const Route = createFileRoute(
|
|
"/_authenticate/_inject-org-details/_org-layout/organization/settings"
|
|
)({
|
|
component: SettingsPage,
|
|
validateSearch: zodValidator(SettingsPageQueryParams),
|
|
search: {
|
|
middlewares: [stripSearchParams({ selectedTab: "" })]
|
|
},
|
|
context: () => ({
|
|
breadcrumbs: [
|
|
{
|
|
label: "Home",
|
|
icon: () => <FontAwesomeIcon icon={faHome} />,
|
|
link: linkOptions({ to: "/" })
|
|
},
|
|
{
|
|
label: "Settings"
|
|
}
|
|
]
|
|
})
|
|
});
|