Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(navbar): integrate MemberAvatars and org settings sub-routes

Richie McIlroyc081e041cce1
diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx
index 424e47f80..0e7849d69 100644
--- a/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx
@@ -44,6 +44,7 @@ import {
RecordIcon,
} from "../AnimatedIcons";
import type { CogIconHandle } from "../AnimatedIcons/Cog";
+import { MemberAvatars } from "./MemberAvatars";
import SpacesList from "./SpacesList";
import { updateActiveOrganization } from "./server";
@@ -94,6 +95,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {
name: "Organization Settings",
href: `/dashboard/settings/organization`,
ownerOnly: true,
+ matchChildren: true,
icon: <CogIcon />,
subNav: [],
},
@@ -300,6 +302,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {
</PopoverTrigger>
</Tooltip>
</Popover>
+ <MemberAvatars />
<nav
className="flex flex-col justify-between w-full h-full"
aria-label="Sidebar"
diff --git a/apps/web/app/(org)/dashboard/_components/Navbar/Top.tsx b/apps/web/app/(org)/dashboard/_components/Navbar/Top.tsx
index c634a876c..714f00e4d 100644
--- a/apps/web/app/(org)/dashboard/_components/Navbar/Top.tsx
+++ b/apps/web/app/(org)/dashboard/_components/Navbar/Top.tsx
@@ -63,6 +63,9 @@ const Top = () => {
"/dashboard/shared-caps": "Shared Caps",
"/dashboard/caps/record": "Record a Cap",
"/dashboard/settings/organization": "Organization Settings",
+ "/dashboard/settings/organization/preferences": "Organization Settings",
+ "/dashboard/settings/organization/billing": "Organization Settings",
+ "/dashboard/settings/organization/members": "Organization Settings",
"/dashboard/settings/account": "Account Settings",
"/dashboard/spaces": "Spaces",
"/dashboard/spaces/browse": "Browse Spaces",