From e0c237cbe1ca87d355a7cad0d0e65b4e0440ddee Mon Sep 17 00:00:00 2001 From: Carsten Koch Date: Fri, 29 Nov 2024 16:27:35 +0100 Subject: [PATCH] fix: remove open todos badge on projects --- components/projects/ProjectAccordionItem.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/projects/ProjectAccordionItem.tsx b/components/projects/ProjectAccordionItem.tsx index 7e2446577..5b704d616 100644 --- a/components/projects/ProjectAccordionItem.tsx +++ b/components/projects/ProjectAccordionItem.tsx @@ -1,13 +1,10 @@ import { useAccountsContext } from "@/api/ContextAccounts"; import { Project, useProjectsContext } from "@/api/ContextProjects"; -import useProjectTodos from "@/api/useProjectTodos"; import { calcRevenueTwoYears, make2YearsRevenueText } from "@/helpers/projects"; import { addDays, format } from "date-fns"; import { flow, map, sum } from "lodash/fp"; import { ArrowRightCircle, Loader2 } from "lucide-react"; import { FC, useState } from "react"; -import ActivityFormatBadge from "../activities/activity-format-badge"; -import TaskBadge from "../task/TaskBadge"; import DefaultAccordionItem from "../ui-elements/accordion/DefaultAccordionItem"; import ProjectDetails from "../ui-elements/project-details/project-details"; import { Button } from "../ui/button"; @@ -30,7 +27,6 @@ const ProjectAccordionItem: FC = ({ const [pushingInProgress, setPushingInProgress] = useState(false); const { saveProjectDates } = useProjectsContext(); const { getAccountNamesByIds } = useAccountsContext(); - const { projectTodos } = useProjectTodos(project?.id); const handlePushToNextDay = async () => { if (!project) return; @@ -51,12 +47,6 @@ const ProjectAccordionItem: FC = ({ className="tracking-tight" onDelete={onDelete} link={`/projects/${project.id}`} - badge={ - <> - 0} /> - {project.hasOldVersionedActivityFormat && } - - } triggerSubTitle={[ project.doneOn && `Done on: ${format(project.doneOn, "PPP")}`, project.onHoldTill &&