1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-09 16:53:33 +02:00

Rearrange roadmap tabs

This commit is contained in:
Kamran Ahmed
2025-05-27 21:32:25 +01:00
parent 7ee47f46b2
commit 9b54116548

View File

@@ -128,23 +128,13 @@ const hasProjects = projectCount > 0;
{
(
<div class='flex justify-between gap-2 sm:gap-0'>
<div class='relative top-px flex gap-1 sm:gap-3'>
<div class='relative top-px flex gap-1 sm:gap-2'>
<TabLink
url={`/${roadmapId}`}
icon={MapIcon}
isActive={activeTab === 'roadmap'}
text='Roadmap'
/>
{hasAIChat && (
<TabLink
url={`/${roadmapId}/ai`}
icon={Bot}
text='AI Mentor'
mobileText='AI'
isActive={false}
badgeText='New'
/>
)}
{hasProjects && (
<TabLink
url={`/${roadmapId}/projects`}
@@ -163,6 +153,16 @@ const hasProjects = projectCount > 0;
className='hidden md:flex'
/>
)}
{hasAIChat && (
<TabLink
url={`/${roadmapId}/ai`}
icon={Bot}
text='AI Mentor'
mobileText='AI'
isActive={false}
badgeText='New'
/>
)}
</div>
<TabLink