diff --git a/apps/web/ee/components/customers/detail/header.tsx b/apps/web/ee/components/customers/detail/header.tsx index b2900254de..fa4f67fef1 100644 --- a/apps/web/ee/components/customers/detail/header.tsx +++ b/apps/web/ee/components/customers/detail/header.tsx @@ -1,23 +1,24 @@ "use client"; import React, { FC, useRef } from "react"; import { observer } from "mobx-react"; -import Link from "next/link"; import { useParams } from "next/navigation"; // plane imports import { PanelRight } from "lucide-react"; import { ICustomSearchSelectOption } from "@plane/types"; -import { Breadcrumbs, CustomersIcon, Header, CustomSearchSelect } from "@plane/ui"; +import { Breadcrumbs, CustomersIcon, Header, BreadcrumbNavigationSearchDropdown } from "@plane/ui"; // components import { cn } from "@plane/utils"; import { BreadcrumbLink, SwitcherLabel } from "@/components/common"; // hooks import { useWorkspace } from "@/hooks/store"; +import { useAppRouter } from "@/hooks/use-app-router"; // plane web imports import { CustomerQuickActions } from "@/plane-web/components/customers/actions"; import { useCustomers } from "@/plane-web/hooks/store"; export const CustomerDetailHeader: FC = observer(() => { const { workspaceSlug, customerId } = useParams(); + const router = useAppRouter(); // hooks const { currentWorkspace } = useWorkspace(); const { getCustomerById, customerIds } = useCustomers(); @@ -37,11 +38,7 @@ export const CustomerDetailHeader: FC = observer(() => { return { value: _customer.id, query: _customer.name, - content: ( - - - - ), + content: , }; }) .filter((option) => option !== undefined) as ICustomSearchSelectOption[]; @@ -64,15 +61,22 @@ export const CustomerDetailHeader: FC = observer(() => { /> + { + router.push(`/${workspaceSlug}/customers/${value}`); + }} + title={customer?.name} + icon={ + + + } - value={customerId.toString()} - onChange={() => {}} - options={switcherOptions} + isLast /> } + isLast />