diff --git a/src/components/ReactIcons/CogIcon.tsx b/src/components/ReactIcons/CogIcon.tsx new file mode 100644 index 000000000..24831d07e --- /dev/null +++ b/src/components/ReactIcons/CogIcon.tsx @@ -0,0 +1,28 @@ +type CogIconProps = { + className?: string; +}; +export function CogIcon(props: CogIconProps) { + const { className } = props; + + return ( + + + + + ); +} diff --git a/src/components/ReactIcons/TeamProgressIcon.tsx b/src/components/ReactIcons/TeamProgressIcon.tsx new file mode 100644 index 000000000..c18693699 --- /dev/null +++ b/src/components/ReactIcons/TeamProgressIcon.tsx @@ -0,0 +1,24 @@ +type TeamProgressIconProps = { + className?: string; +}; +export function TeamProgressIcon(props: TeamProgressIconProps) { + const { className } = props; + + return ( + + + + + ); +} diff --git a/src/components/TeamSidebar.tsx b/src/components/TeamSidebar.tsx index f9ed22b2a..ca07e71e7 100644 --- a/src/components/TeamSidebar.tsx +++ b/src/components/TeamSidebar.tsx @@ -1,16 +1,16 @@ import { TeamDropdown } from './TeamDropdown/TeamDropdown'; -import ChevronDown from '../icons/dropdown.svg'; import { useTeamId } from '../hooks/use-team-id'; -import TeamProgress from '../icons/team-progress.svg'; -import SettingsIcon from '../icons/cog.svg'; import ChatIcon from '../icons/chat.svg'; -import MapIcon from '../icons/map.svg'; -import GroupIcon from '../icons/group.svg'; -import { useState } from 'react'; import type { ReactNode } from 'react'; +import { useState } from 'react'; import { useStore } from '@nanostores/react'; import { $currentTeam } from '../stores/team'; import { SubmitFeedbackPopup } from './Feedback/SubmitFeedbackPopup'; +import { ChevronDownIcon } from './ReactIcons/ChevronDownIcon.tsx'; +import { GroupIcon } from './ReactIcons/GroupIcon.tsx'; +import { TeamProgressIcon } from './ReactIcons/TeamProgressIcon.tsx'; +import { MapIcon, MessageCircle } from 'lucide-react'; +import { CogIcon } from './ReactIcons/CogIcon.tsx'; type TeamSidebarProps = { activePageId: string; @@ -29,26 +29,26 @@ export function TeamSidebar({ activePageId, children }: TeamSidebarProps) { title: 'Progress', href: `/team/progress?t=${teamId}`, id: 'progress', - icon: TeamProgress.src, + icon: TeamProgressIcon, }, { title: 'Roadmaps', href: `/team/roadmaps?t=${teamId}`, id: 'roadmaps', - icon: MapIcon.src, + icon: MapIcon, hasWarning: currentTeam?.roadmaps?.length === 0, }, { title: 'Members', href: `/team/members?t=${teamId}`, id: 'members', - icon: GroupIcon.src, + icon: GroupIcon, }, { title: 'Settings', href: `/team/settings?t=${teamId}`, id: 'settings', - icon: SettingsIcon.src, + icon: CogIcon, }, ]; @@ -66,7 +66,7 @@ export function TeamSidebar({ activePageId, children }: TeamSidebarProps) { sidebarLinks.find((sidebarLink) => sidebarLink.id === activePageId) ?.title } - menu + {menuShown && (