diff --git a/editor.planx.uk/src/pages/Teams.tsx b/editor.planx.uk/src/pages/Teams.tsx index ef1da7b68c..4447ee701f 100644 --- a/editor.planx.uk/src/pages/Teams.tsx +++ b/editor.planx.uk/src/pages/Teams.tsx @@ -8,6 +8,7 @@ import navigation from "lib/navigation"; import React from "react"; import { Link } from "react-navi"; import { borderedFocusStyle } from "theme"; +import Permission from "ui/editor/Permission"; import { slugify } from "utils"; import { useStore } from "./FlowEditor/lib/store"; @@ -93,7 +94,7 @@ const Teams: React.FC = ({ teams, teamTheme }) => { Select a team - {isPlatformAdmin ? ( + { const newTeamName = prompt("Team name"); @@ -118,7 +119,7 @@ const Teams: React.FC = ({ teams, teamTheme }) => { > Add a new team - ) : null} + {editableTeams.length > 0 && ( <>