From 2a6c8ae92e3591707be5a1ca0caaf0d67074c80b Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 5 Jun 2023 08:02:35 -0300 Subject: [PATCH] Fixed header to display options only on flow name --- .../src/components/ui/dropdown-menu.tsx | 2 +- src/frontend/src/pages/MainPage/index.tsx | 67 +++++++++---------- 2 files changed, 31 insertions(+), 38 deletions(-) diff --git a/src/frontend/src/components/ui/dropdown-menu.tsx b/src/frontend/src/components/ui/dropdown-menu.tsx index c8aa60367..d13ee400e 100644 --- a/src/frontend/src/components/ui/dropdown-menu.tsx +++ b/src/frontend/src/components/ui/dropdown-menu.tsx @@ -146,7 +146,7 @@ const DropdownMenuLabel = React.forwardRef< -
- - - ⛓️{" "} - - - - Flow - - { - openPopUp(); - }} - > - - Import - - { - openPopUp(); - }} - > - - Export - - { - openPopUp(); - }} - > - - Code - - - +
+ ⛓️
{flows[tabIndex].name} @@ -123,6 +90,33 @@ export default function HomePage() { + Current Flow + { + openPopUp(); + }} + > + + Import + + { + openPopUp(); + }} + > + + Export + + { + openPopUp(); + }} + > + + Code + + + Flows { @@ -132,12 +126,11 @@ export default function HomePage() { {flows.map((flow, idx) => { return ( - {flow.name} + {}}>{flow.name} ); })} - { addFlow();