mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
Remove useNavigate everywhere, and make request a query param. And convert dialog to Jotai
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { Workspace } from '../../../components/Workspace';
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { Workspace } from '../../../components/Workspace'
|
||||
|
||||
interface WorkspaceSearchSchema {
|
||||
cookie_jar_id?: string | null;
|
||||
environment_id?: string | null;
|
||||
request_id?: string | null
|
||||
environment_id?: string | null
|
||||
cookie_jar_id?: string | null
|
||||
}
|
||||
|
||||
export const Route = createFileRoute('/workspaces/$workspaceId/')({
|
||||
component: RouteComponent,
|
||||
validateSearch: (search: Record<string, unknown>): WorkspaceSearchSchema => ({
|
||||
request_id: search.request_id as string,
|
||||
environment_id: search.environment_id as string,
|
||||
cookie_jar_id: search.cookie_jar_id as string,
|
||||
}),
|
||||
});
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
return <Workspace />;
|
||||
return <Workspace />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user