mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 02:11:25 +01:00
Performance sweep (#147)
This commit is contained in:
17
src-web/routes/workspaces/settings.tsx
Normal file
17
src-web/routes/workspaces/settings.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import Settings, { SettingsTab } from '../../components/Settings/Settings'
|
||||
|
||||
interface SettingsSearchSchema {
|
||||
tab?: SettingsTab
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/workspaces/settings')({
|
||||
component: RouteComponent,
|
||||
validateSearch: (search: Record<string, unknown>): SettingsSearchSchema => ({
|
||||
tab: (search.tab ?? SettingsTab.General) as SettingsTab,
|
||||
}),
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <Settings />
|
||||
}
|
||||
Reference in New Issue
Block a user