Rewrite identity and access management
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { lazy } from "@probo/react-lazy";
|
||||
import { PageSkeleton } from "/components/skeletons/PageSkeleton";
|
||||
import { loadQuery } from "react-relay";
|
||||
import { relayEnvironment } from "/providers/RelayProviders";
|
||||
import { consoleEnvironment } from "/environments";
|
||||
import { tasksQuery } from "/hooks/graph/TaskGraph";
|
||||
import { loaderFromQueryLoader, withQueryRef, type AppRoute } from "@probo/routes";
|
||||
import type { TaskGraphQuery } from "/hooks/graph/__generated__/TaskGraphQuery.graphql";
|
||||
@@ -10,7 +10,7 @@ export const taskRoutes = [
|
||||
path: "tasks",
|
||||
Fallback: PageSkeleton,
|
||||
loader: loaderFromQueryLoader(({ organizationId }) =>
|
||||
loadQuery<TaskGraphQuery>(relayEnvironment, tasksQuery, {
|
||||
loadQuery<TaskGraphQuery>(consoleEnvironment, tasksQuery, {
|
||||
organizationId,
|
||||
}),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user