mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-19 06:07:12 +02:00
Split codebase (#455)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import type { SettingsTab } from "../../../components/Settings/Settings";
|
||||
import Settings from "../../../components/Settings/Settings";
|
||||
|
||||
interface SettingsSearchSchema {
|
||||
tab?: SettingsTab;
|
||||
}
|
||||
|
||||
export const Route = createFileRoute("/workspaces/$workspaceId/settings")({
|
||||
component: RouteComponent,
|
||||
validateSearch: (search: Record<string, unknown>): SettingsSearchSchema => ({
|
||||
tab: (search.tab ?? "general") as SettingsTab,
|
||||
}),
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <Settings />;
|
||||
}
|
||||
Reference in New Issue
Block a user