From 8dc3d8264453f30b7d06930d56a222e487317f0a Mon Sep 17 00:00:00 2001 From: Akash Singh Date: Sat, 10 Aug 2024 04:15:09 +0530 Subject: [PATCH] fix: role and aria-label --- client/src/components/Nav/Nav.tsx | 4 +++- client/src/components/SidePanel/SidePanel.tsx | 6 ++++-- client/src/localization/languages/Eng.ts | 2 ++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/components/Nav/Nav.tsx b/client/src/components/Nav/Nav.tsx index 5a7a9d5bf55..ec15e681a37 100644 --- a/client/src/components/Nav/Nav.tsx +++ b/client/src/components/Nav/Nav.tsx @@ -9,6 +9,7 @@ import { useLocalStorage, useNavScrolling, useConversations, + useLocalize, } from '~/hooks'; import { useConversationsInfiniteQuery } from '~/data-provider'; import { TooltipProvider, Tooltip } from '~/components/ui'; @@ -24,6 +25,7 @@ import { cn } from '~/utils'; import store from '~/store'; const Nav = ({ navVisible, setNavVisible }) => { + const localize = useLocalize(); const { conversationId } = useParams(); const { isAuthenticated } = useAuthContext(); @@ -141,7 +143,7 @@ const Nav = ({ navVisible, setNavVisible }) => { >