diff --git a/components/projects/ProjectAccordionItem.tsx b/components/projects/ProjectAccordionItem.tsx index 9cc4d5de8..7e2446577 100644 --- a/components/projects/ProjectAccordionItem.tsx +++ b/components/projects/ProjectAccordionItem.tsx @@ -1,15 +1,12 @@ import { useAccountsContext } from "@/api/ContextAccounts"; import { Project, useProjectsContext } from "@/api/ContextProjects"; import useProjectTodos from "@/api/useProjectTodos"; -import useCurrentUser from "@/api/useUser"; 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 HygieneIssueBadge from "../crm/hygiene-issue-badge"; -import { hasHygieneIssues } from "../crm/pipeline-hygiene"; import TaskBadge from "../task/TaskBadge"; import DefaultAccordionItem from "../ui-elements/accordion/DefaultAccordionItem"; import ProjectDetails from "../ui-elements/project-details/project-details"; @@ -34,7 +31,6 @@ const ProjectAccordionItem: FC = ({ const { saveProjectDates } = useProjectsContext(); const { getAccountNamesByIds } = useAccountsContext(); const { projectTodos } = useProjectTodos(project?.id); - const { user } = useCurrentUser(); const handlePushToNextDay = async () => { if (!project) return; @@ -57,9 +53,6 @@ const ProjectAccordionItem: FC = ({ link={`/projects/${project.id}`} badge={ <> - {project.crmProjects.some(hasHygieneIssues(user)) && ( - - )} 0} /> {project.hasOldVersionedActivityFormat && } diff --git a/components/ui-elements/crm-project-details/crm-projects-list.tsx b/components/ui-elements/crm-project-details/crm-projects-list.tsx index 22b4cf67b..13c90ef50 100644 --- a/components/ui-elements/crm-project-details/crm-projects-list.tsx +++ b/components/ui-elements/crm-project-details/crm-projects-list.tsx @@ -1,7 +1,4 @@ import useCrmProjects, { CrmProject } from "@/api/useCrmProjects"; -import useCurrentUser from "@/api/useUser"; -import HygieneIssueBadge from "@/components/crm/hygiene-issue-badge"; -import { hasHygieneIssues } from "@/components/crm/pipeline-hygiene"; import { Accordion } from "@/components/ui/accordion"; import { useContextContext } from "@/contexts/ContextContext"; import { getRevenue2Years } from "@/helpers/projects"; @@ -23,7 +20,6 @@ const CrmProjectsList: FC = ({ }) => { const { isWorkContext } = useContextContext(); const { createCrmProject } = useCrmProjects(); - const { user } = useCurrentUser(); const onCrmProjectCreate = async ({ arr, @@ -58,9 +54,6 @@ const CrmProjectsList: FC = ({ - } isVisible={isVisible} triggerSubTitle={ crmProjects && crmProjects.length > 0 && getRevenue2Years(crmProjects)