1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

(nextjs) fixed eslint warnings

This commit is contained in:
Fedor Katurov 2022-01-19 12:03:54 +07:00
parent c469722a86
commit e5f8d5a551
29 changed files with 56 additions and 59 deletions

View file

@ -41,7 +41,10 @@ export const useNodeActions = (node: INode, update: (node: Partial<INode>) => Pr
}
}, [node.deleted_at, node.id, update]);
const onEdit = useCallback(() => showModal(Dialog.EditNode, { nodeId: node.id! }), [node]);
const onEdit = useCallback(() => showModal(Dialog.EditNode, { nodeId: node.id! }), [
node,
showModal,
]);
return { onLike, onStar, onLock, onEdit };
};