(clean) comments

This commit is contained in:
ManishMadan2882
2025-03-07 20:24:38 +05:30
parent 93fea17918
commit 10c7a5f36b
5 changed files with 2 additions and 39 deletions

View File

@@ -87,17 +87,13 @@ export default function Documents({
activeMenuId === docId;
if (isAnyMenuOpen) {
// Close both menus
setSyncMenuState((prev) => ({ ...prev, isOpen: false, docId: null }));
setActiveMenuId(null);
return;
}
// If no menu is open, open the context menu
setActiveMenuId(docId);
};
// Close menu when clicking outside
useEffect(() => {
const handleClickOutside = (event: MouseEvent) => {
if (activeMenuId) {