Skip to content

Commit

Permalink
slightly tidier conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Sep 26, 2023
1 parent f464121 commit a751c57
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions editor.planx.uk/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,14 +484,16 @@ const EditorToolbar: React.FC<{
</ListItemText>
</MenuItem>
)}
<MenuItem disabled divider>
<ListItemIcon>
<Visibility />
</ListItemIcon>
<ListItemText>
All teams
</ListItemText>
</MenuItem>
{!user.isPlatformAdmin && (
<MenuItem disabled divider>
<ListItemIcon>
<Visibility />
</ListItemIcon>
<ListItemText>
All teams
</ListItemText>
</MenuItem>
)}

{/* only show flow settings link if inside a flow route */}
{route.data.flow && (
Expand Down

0 comments on commit a751c57

Please sign in to comment.