From a47bd40157bdca63aeb75446fce4e171c4387f7d Mon Sep 17 00:00:00 2001 From: Mohamed amaan <121436543+modamaan@users.noreply.github.com> Date: Mon, 23 Dec 2024 10:21:55 +0530 Subject: [PATCH 01/11] FIXED: Implement Dropdown for Hidden Breadcrumb Paths Across the Platform (#9413) --- src/components/Common/Breadcrumbs.tsx | 146 +++++++++++++++----------- src/components/ui/breadcrumb.tsx | 118 +++++++++++++++++++++ 2 files changed, 201 insertions(+), 63 deletions(-) create mode 100644 src/components/ui/breadcrumb.tsx diff --git a/src/components/Common/Breadcrumbs.tsx b/src/components/Common/Breadcrumbs.tsx index c2c4aa57446..f55edd4ccf6 100644 --- a/src/components/Common/Breadcrumbs.tsx +++ b/src/components/Common/Breadcrumbs.tsx @@ -3,7 +3,19 @@ import { useState } from "react"; import CareIcon from "@/CAREUI/icons/CareIcon"; +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbList, + BreadcrumbSeparator, +} from "@/components/ui/breadcrumb"; import { Button } from "@/components/ui/button"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu"; import useAppHistory from "@/hooks/useAppHistory"; @@ -69,76 +81,84 @@ export default function Breadcrumbs({ className={classNames("text-sm font-normal", crumb.style)} >
- {t("no_linked_facilities")} -
-- {t("local_body")}, {t("district")}, {t("state")}{" "} - {t("are_non_editable_fields")}. -
-- @{authUser.username} -
-- {skill.skill_object.name} -
- - ); - }) - : "-"} -- {t("set_your_local_language")} -
-- {t("check_for_available_update")} -
-