style: format useEffect cleanup to satisfy biome

This commit is contained in:
Matt Van Horn 2026-04-02 23:43:19 -07:00
parent 3621951f2a
commit e38a0ff7c3
3 changed files with 18 additions and 3 deletions

View file

@ -827,7 +827,12 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
toolsRafRef.current = undefined;
});
}, []);
useEffect(() => () => { if (toolsRafRef.current) cancelAnimationFrame(toolsRafRef.current); }, []);
useEffect(
() => () => {
if (toolsRafRef.current) cancelAnimationFrame(toolsRafRef.current);
},
[]
);
const isComposerTextEmpty = useAuiState(({ composer }) => {
const text = composer.text?.trim() || "";
return text.length === 0;