FIX: Make biome happy
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
15da2e5785
commit
248ef66e7c
@@ -18,10 +18,13 @@ const FormatMenu = (properties: FormatMenuProps) => {
|
|||||||
const [isPickerOpen, setPickerOpen] = useState(false);
|
const [isPickerOpen, setPickerOpen] = useState(false);
|
||||||
const anchorElement = useRef<HTMLDivElement>(null);
|
const anchorElement = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
const onSelect = useCallback((s: string) => {
|
const onSelect = useCallback(
|
||||||
|
(s: string) => {
|
||||||
properties.onChange(s);
|
properties.onChange(s);
|
||||||
setMenuOpen(false);
|
setMenuOpen(false);
|
||||||
}, [properties.onChange]);
|
},
|
||||||
|
[properties.onChange],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user