From 9da9d781870c57743a6abd0d1f57c8b5ccb493aa Mon Sep 17 00:00:00 2001 From: psiddharthdesign <107192927+psiddharthdesign@users.noreply.github.com> Date: Wed, 31 Jul 2024 19:55:33 +0530 Subject: [PATCH] minor fixes --- .../team/[teamId]/(specific-team-pages)/page.tsx | 4 +++- .../[projectSlug]/(specific-project-pages)/layout.tsx | 2 +- .../project/[projectSlug]/@sidebar/ProjectSidebar.tsx | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/team/[teamId]/(specific-team-pages)/page.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/team/[teamId]/(specific-team-pages)/page.tsx index ee699a8a..527ade15 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/team/[teamId]/(specific-team-pages)/page.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/team/[teamId]/(specific-team-pages)/page.tsx @@ -3,6 +3,7 @@ import { PageHeading } from '@/components/PageHeading'; import { Search } from '@/components/Search'; import { Button } from '@/components/ui/button'; import { T } from '@/components/ui/Typography'; +import { getSlimTeamById } from '@/data/user/teams'; import { projectsfilterSchema } from '@/utils/zod-schemas/params'; import { Plus } from 'lucide-react'; import Link from 'next/link'; @@ -27,10 +28,11 @@ export default async function TeamPage({ const parsedParams = paramsSchema.parse(params); const filters = projectsfilterSchema.parse(searchParams); const { teamId, organizationId } = parsedParams; + const { name } = await getSlimTeamById(teamId); return (
diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/(specific-project-pages)/layout.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/(specific-project-pages)/layout.tsx index 48c622b9..a901689b 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/(specific-project-pages)/layout.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/(specific-project-pages)/layout.tsx @@ -10,7 +10,7 @@ async function ProjectPageHeading({ projectId }: { projectId: string }) { return ( ); } diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/@sidebar/ProjectSidebar.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/@sidebar/ProjectSidebar.tsx index d4c7fb6f..baa89016 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/@sidebar/ProjectSidebar.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/project/[projectSlug]/@sidebar/ProjectSidebar.tsx @@ -5,7 +5,7 @@ import { fetchSlimOrganizations } from '@/data/user/organizations'; import { getSlimProjectById, getSlimProjectBySlug } from '@/data/user/projects'; import { cn } from '@/utils/cn'; import { projectSlugParamSchema } from '@/utils/zod-schemas/params'; -import { Activity, ArrowLeft, FileText, GitCompare, Layers, MessageCircle, Settings, Shield } from 'lucide-react'; +import { Activity, ArrowLeft, FileText, GitCompare, Layers, MessageCircle, Settings, Shield, Users } from 'lucide-react'; import { Suspense } from 'react'; async function ProjectSidebarInternal({ projectId, projectSlug }: { projectId: string; projectSlug: string }) { @@ -37,6 +37,11 @@ async function ProjectSidebarInternal({ projectId, projectSlug }: { projectId: s href={`/org/${organizationId}/projects`} icon={} /> + } + />