1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-01-17 14:18:17 +01:00

Add roadmaps and friends to account dropdown

This commit is contained in:
Kamran Ahmed 2023-10-04 10:34:29 +01:00
parent a0743a8272
commit 4b8f868b2b
2 changed files with 24 additions and 0 deletions

View File

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

View File

@ -26,6 +26,14 @@ export function AccountDropdownList(props: AccountDropdownListProps) {
Friends Friends
</a> </a>
</li> </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"> <li className="px-1">
<button <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" 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"