diff --git a/src/components/FileTracker/FileTracker.jsx b/src/components/FileTracker/FileTracker.jsx new file mode 100644 index 00000000..5b967636 --- /dev/null +++ b/src/components/FileTracker/FileTracker.jsx @@ -0,0 +1,47 @@ +import React, {useState} from "react"; +import { backendImg } from "@utils/helper"; +import close from "assets/icons/closeProjectPersons.svg"; + +import {apiRequest} from "@api/request"; + +const FileTracker = ({ file, setDeletedTask, taskId }) => { + const [openImg, setOpenImg] = useState(false) + function deleteFile(file) { + apiRequest("/file/detach", { + method: "DELETE", + data: { + file_id: file.id, + entity_type: 2, + entity_id: taskId, + status: 0, + }, + }).then(() => { + setDeletedTask(file); + }); + } + + return ( +
ссылка на задачу
-в архив
удалить
ссылка на задачу
в архив
удалить