Fixed the circular imports and things

This commit is contained in:
Gregory Schier
2024-12-20 23:49:15 -08:00
parent 51a11b6495
commit ec999015ab
83 changed files with 511 additions and 551 deletions

View File

@@ -0,0 +1,18 @@
import { createFileRoute } from '@tanstack/react-router'
import Settings from '../../../components/Settings/Settings'
import { SettingsTab } from '../../../components/Settings/SettingsTab'
interface SettingsSearchSchema {
tab?: SettingsTab
}
export const Route = createFileRoute('/workspaces/$workspaceId/settings')({
component: RouteComponent,
validateSearch: (search: Record<string, unknown>): SettingsSearchSchema => ({
tab: (search.tab ?? SettingsTab.General) as SettingsTab,
}),
})
function RouteComponent() {
return <Settings />
}