From a5ab9d099d9cc3c523f119dcbecb888298657d8a Mon Sep 17 00:00:00 2001 From: moekumasaka Date: Wed, 18 Sep 2024 08:03:00 +0000 Subject: [PATCH] fix variable name --- apps/app/src/client/components/CustomNavigation/CustomNav.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app/src/client/components/CustomNavigation/CustomNav.tsx b/apps/app/src/client/components/CustomNavigation/CustomNav.tsx index 3c25b9ca7ba..ad68f3a0c15 100644 --- a/apps/app/src/client/components/CustomNavigation/CustomNav.tsx +++ b/apps/app/src/client/components/CustomNavigation/CustomNav.tsx @@ -46,7 +46,7 @@ export const CustomNavDropdown = (props: CustomNavDropdownProps): JSX.Element => const dropdownButtonRef = useRef(null); - const handleDropdownToggle = () => { + const toggleDropdown = () => { setIsDropdownOpen(prev => !prev); }; @@ -70,7 +70,7 @@ export const CustomNavDropdown = (props: CustomNavDropdownProps): JSX.Element => data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded={isDropdownOpen} - onClick={handleDropdownToggle} + onClick={toggleDropdown} > { Icon != null && } {i18n}