From a751c571fd2ee5f4e677f34bbb19fa366f8bf872 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Tue, 26 Sep 2023 20:31:58 +0200 Subject: [PATCH] slightly tidier conditional --- editor.planx.uk/src/components/Header.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/editor.planx.uk/src/components/Header.tsx b/editor.planx.uk/src/components/Header.tsx index 83583584c2..ebc2b00313 100644 --- a/editor.planx.uk/src/components/Header.tsx +++ b/editor.planx.uk/src/components/Header.tsx @@ -484,14 +484,16 @@ const EditorToolbar: React.FC<{ )} - - - - - - All teams - - + {!user.isPlatformAdmin && ( + + + + + + All teams + + + )} {/* only show flow settings link if inside a flow route */} {route.data.flow && (