feat: completed sidebar changes

This commit is contained in:
=
2025-01-20 22:58:59 +05:30
parent 4a6f759900
commit 03debcab5a
16 changed files with 794 additions and 378 deletions
+6 -1
View File
@@ -3,12 +3,17 @@ import { createFileRoute } from "@tanstack/react-router";
import { workspaceKeys } from "@app/hooks/api";
import { fetchUserProjectPermissions, roleQueryKeys } from "@app/hooks/api/roles/queries";
import { fetchWorkspaceById } from "@app/hooks/api/workspace/queries";
import { OrganizationLayout } from "@app/layouts/OrganizationLayout";
import { ProjectLayout } from "@app/layouts/ProjectLayout";
export const Route = createFileRoute(
"/_authenticate/_inject-org-details/kms/$projectId/_kms-layout"
)({
component: ProjectLayout,
component: () => (
<OrganizationLayout>
<ProjectLayout />
</OrganizationLayout>
),
beforeLoad: async ({ params, context }) => {
await context.queryClient.ensureQueryData({
queryKey: workspaceKeys.getWorkspaceById(params.projectId),