Add roadmaps and friends to account dropdown

pull/4546/head
Kamran Ahmed 1 year ago
parent a0743a8272
commit 4b8f868b2b
  1. 16
      src/components/CommandMenu/CommandMenu.tsx
  2. 8
      src/components/Navigation/AccountDropdownList.tsx

@ -40,6 +40,14 @@ const defaultPages: PageType[] = [
icon: GroupIcon.src,
isProtected: true,
},
{
id: 'friends',
url: '/account/friends',
title: 'Friends',
group: 'Pages',
icon: GroupIcon.src,
isProtected: true,
},
{
id: 'roadmaps',
url: '/roadmaps',
@ -47,6 +55,14 @@ const defaultPages: PageType[] = [
group: 'Pages',
icon: RoadmapIcon.src,
},
{
id: 'account-roadmaps',
url: '/account/roadmaps',
title: 'Custom Roadmaps',
group: 'Pages',
icon: RoadmapIcon.src,
isProtected: true,
},
{
id: 'best-practices',
url: '/best-practices',

@ -26,6 +26,14 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
Friends
</a>
</li>
<li className="px-1">
<a
href="/account/roadmaps"
className="block rounded pl-4 pr-2 py-2 text-sm font-medium text-slate-100 hover:bg-slate-700"
>
Roadmaps
</a>
</li>
<li className="px-1">
<button
className="group flex w-full items-center justify-between rounded pl-4 pr-2 py-2 text-sm font-medium text-slate-100 hover:bg-slate-700"

Loading…
Cancel
Save