Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 31, 2024
1 parent bb0fa5e commit 9da9d78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 (
<div className="flex flex-col space-y-4 max-w-5xl mt-2">
<PageHeading
title="Team"
title={name}
subTitle="You can create projects within team, or within your organization."
/>
<div className="flex justify-between gap-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function ProjectPageHeading({ projectId }: { projectId: string }) {
return (
<PageHeading
title={projectTitle}
subTitle={`Project ID : ${projectId} `}
subTitle="Manage your project here"
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down Expand Up @@ -37,6 +37,11 @@ async function ProjectSidebarInternal({ projectId, projectSlug }: { projectId: s
href={`/org/${organizationId}/projects`}
icon={<Layers className="size-4 text-foreground" />}
/>
<SidebarLink
label="Teams"
href={`/org/${organizationId}/teams`}
icon={<Users className="size-4 text-foreground" />}
/>
<SidebarLink
label="Activity"
href={`/org/${organizationId}/activity`}
Expand Down

0 comments on commit 9da9d78

Please sign in to comment.