diff --git a/src/components/CreateTeam/Step2.tsx b/src/components/CreateTeam/Step2.tsx index 1e7c37141..c629020b7 100644 --- a/src/components/CreateTeam/Step2.tsx +++ b/src/components/CreateTeam/Step2.tsx @@ -41,17 +41,30 @@ export function Step2(props: Step2Props) { Previous Step - +
+ {teamResourceConfig.length === 0 && ( + + )} + +
); diff --git a/src/components/TeamDropdown/TeamDropdown.tsx b/src/components/TeamDropdown/TeamDropdown.tsx index a4124ef7d..2fed4df15 100644 --- a/src/components/TeamDropdown/TeamDropdown.tsx +++ b/src/components/TeamDropdown/TeamDropdown.tsx @@ -155,12 +155,6 @@ export function TeamDropdown() { Invite )} - - {team.roadmaps.length === 0 && ( - - Draft - - )} ); diff --git a/src/components/TeamSidebar.tsx b/src/components/TeamSidebar.tsx index aa370cab2..7c26a4238 100644 --- a/src/components/TeamSidebar.tsx +++ b/src/components/TeamSidebar.tsx @@ -8,13 +8,14 @@ import MapIcon from '../icons/map.svg'; import GroupIcon from '../icons/group.svg'; import { useState } from 'preact/hooks'; import { useStore } from '@nanostores/preact'; -import { $canManageCurrentTeam } from '../stores/team'; +import { $canManageCurrentTeam, $currentTeam } from '../stores/team'; +import { WarningIcon } from './ReactIcons/WarningIcon'; export const TeamSidebar: FunctionalComponent<{ activePageId: string; }> = ({ activePageId, children }) => { const [menuShown, setMenuShown] = useState(false); - const canManageCurrentTeam = useStore($canManageCurrentTeam); + const currentTeam = useStore($currentTeam); const { teamId } = useTeamId(); @@ -30,6 +31,7 @@ export const TeamSidebar: FunctionalComponent<{ href: `/team/roadmaps?t=${teamId}`, id: 'roadmaps', icon: MapIcon, + hasWarning: currentTeam?.roadmaps?.length === 0, }, { title: 'Members', @@ -120,13 +122,21 @@ export const TeamSidebar: FunctionalComponent<{ : 'border-r-transparent text-gray-500 hover:border-r-gray-300' }`} > - - menu icon - {sidebarLink.title} + + + menu icon + {sidebarLink.title} + + {sidebarLink.hasWarning && ( + + + + + )}