From 7a390b91ca2839380cf32075fa1047466b76bb15 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Wed, 4 Feb 2026 20:20:23 +0000 Subject: [PATCH] fix(Dropdown): remove redundant useT() call from handleClickOutside --- src/components/Form/Settings/Dropdown/Dropdown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/Settings/Dropdown/Dropdown.jsx b/src/components/Form/Settings/Dropdown/Dropdown.jsx index 7ef3dead..e0c1eb98 100644 --- a/src/components/Form/Settings/Dropdown/Dropdown.jsx +++ b/src/components/Form/Settings/Dropdown/Dropdown.jsx @@ -10,6 +10,7 @@ import EventBus from 'utils/eventbus'; import './Dropdown.scss'; const Dropdown = memo((props) => { + const t = useT(); const [value, setValue] = useState(localStorage.getItem(props.name) || props.items[0]?.value); const [open, setOpen] = useState(false); const [closing, setClosing] = useState(false); @@ -34,7 +35,6 @@ const Dropdown = memo((props) => { useEffect(() => { const handleClickOutside = (event) => { - const t = useT(); if ( containerRef.current && !containerRef.current.contains(event.target) &&