improve: add setting button to pathnode

This commit is contained in:
h z
2025-03-20 18:37:13 +00:00
parent dc0ff3b406
commit 09338a2683
3 changed files with 24 additions and 6 deletions

View File

@@ -9,9 +9,7 @@ const SideNavigation = () => {
const {data: tree, isLoading, error} = useTree();
const deletePath = useDeletePath();
const updatePath = useUpdatePath();
const [searchTerm, setSearchTerm] = React.useState("");
const [keyword, setKeyword] = React.useState("");
const [searchMode, setSearchMode] = React.useState(false);
const handleDelete = (id) => {
if (window.confirm("Are you sure you want to delete this path?")){
deletePath.mutate(id, {