Skip to content

Commit

Permalink
fix(ui): Dynamic routing between workflow / case tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Mar 7, 2024
1 parent 6a78976 commit 83a764f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
File renamed without changes.
6 changes: 5 additions & 1 deletion frontend/src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export function Navbar() {
<WorkflowSwitcher />
<Tabs value={pathname.endsWith("/cases") ? "cases" : "workflow"}>
<TabsList className="grid w-full grid-cols-2">
<Link href="/" className="w-full" passHref>
<Link
href={`/workflows/${workflowId}`}
className="w-full"
passHref
>
<TabsTrigger className="w-full" value="workflow">
<WorkflowIcon className="mr-2 h-4 w-4" />
Workflow
Expand Down

0 comments on commit 83a764f

Please sign in to comment.