From 1ba4b3c1a28e8f986c856df821d35778610b7f94 Mon Sep 17 00:00:00 2001 From: vinu tv Date: Tue, 15 Oct 2024 20:40:17 +0530 Subject: [PATCH] Update the dropdown to a accesible button --- .../Common/Sidebar/SidebarUserCard.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Components/Common/Sidebar/SidebarUserCard.tsx b/src/Components/Common/Sidebar/SidebarUserCard.tsx index 59b2b5b84c2..aafaf96a87f 100644 --- a/src/Components/Common/Sidebar/SidebarUserCard.tsx +++ b/src/Components/Common/Sidebar/SidebarUserCard.tsx @@ -5,6 +5,7 @@ import CareIcon from "../../../CAREUI/icons/CareIcon"; import { formatName, formatDisplayName } from "../../../Utils/utils"; import useAuthUser, { useAuthContext } from "../../../Common/hooks/useAuthUser"; import { Avatar } from "@/Components/Common/Avatar"; +import { Button } from "@/Components/ui/button"; import { DropdownMenu, DropdownMenuContent, @@ -27,8 +28,10 @@ const SidebarUserCard: React.FC = ({ shrinked }) => { > -
= ({ shrinked }) => {
{!shrinked && ( @@ -46,8 +49,12 @@ const SidebarUserCard: React.FC = ({ shrinked }) => { )}
-
- +
+
@@ -64,7 +71,7 @@ const SidebarUserCard: React.FC = ({ shrinked }) => {
-
+