I want when i click on a custom close icon and it will be triggered uploadcare delete icon to remove uploaded file only from UI don’t want to use uploadcare api to removed.
I want when i click on a custom close icon and it will be triggered uploadcare delete icon to remove uploaded file only from UI don’t want to use uploadcare api to removed.
currently when i click on delete icon then its triggered below code and then removed
window.addEventListener("LR_REMOVE", () => {
setFileName('');
setUploadId('');
const updatedCardsArr = _.filter(contex`your text`tArr, (item) => item.title !== fileName)
setContextArr(updatedCardsArr);
});