From 6d58cb9a019ae0b94195157b5523b86b40a4e737 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 26 Aug 2024 17:06:39 +0100 Subject: [PATCH] Add back button on the projects navigation --- src/components/Projects/ProjectTabs.tsx | 18 ++++++++++++--- src/pages/projects/[projectId]/index.astro | 22 +++++++++++++------ .../projects/[projectId]/solutions.astro | 4 +++- 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/components/Projects/ProjectTabs.tsx b/src/components/Projects/ProjectTabs.tsx index 9c9931d0d..1c7350b07 100644 --- a/src/components/Projects/ProjectTabs.tsx +++ b/src/components/Projects/ProjectTabs.tsx @@ -1,8 +1,10 @@ import { cn } from '../../lib/classname'; import { + ArrowLeft, Blocks, BoxSelect, type LucideIcon, + StepBackIcon, StickyNote, Text, } from 'lucide-react'; @@ -34,7 +36,7 @@ function TabButton(props: TabButtonProps) { {smText && {smText}} {isActive && ( - + )} ); @@ -43,13 +45,23 @@ function TabButton(props: TabButtonProps) { type ProjectTabsProps = { activeTab: AllowedProjectTab; projectId: string; + parentRoadmapId?: string; }; export function ProjectTabs(props: ProjectTabsProps) { - const { activeTab, projectId } = props; + const { activeTab, parentRoadmapId, projectId } = props; return ( -
+
+ + + Back to Projects +
- + -
+
-