Skip to content

Commit

Permalink
fix: remove open todos badge on projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Koch committed Nov 29, 2024
1 parent 4f3f035 commit e0c237c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions components/projects/ProjectAccordionItem.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -30,7 +27,6 @@ const ProjectAccordionItem: FC<ProjectAccordionItemProps> = ({
const [pushingInProgress, setPushingInProgress] = useState(false);
const { saveProjectDates } = useProjectsContext();
const { getAccountNamesByIds } = useAccountsContext();
const { projectTodos } = useProjectTodos(project?.id);

const handlePushToNextDay = async () => {
if (!project) return;
Expand All @@ -51,12 +47,6 @@ const ProjectAccordionItem: FC<ProjectAccordionItemProps> = ({
className="tracking-tight"
onDelete={onDelete}
link={`/projects/${project.id}`}
badge={
<>
<TaskBadge hasOpenTasks={projectTodos && projectTodos.length > 0} />
{project.hasOldVersionedActivityFormat && <ActivityFormatBadge />}
</>
}
triggerSubTitle={[
project.doneOn && `Done on: ${format(project.doneOn, "PPP")}`,
project.onHoldTill &&
Expand Down

0 comments on commit e0c237c

Please sign in to comment.