MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / handleRemove

Function handleRemove

upload-component/src/Upload/index.tsx:60–67  ·  view source on GitHub ↗
(file: UploadFile)

Source from the content-addressed store, hash-verified

58 }
59
60 const handleRemove = (file: UploadFile) => {
61 setFileList((prevList) => {
62 return prevList.filter(item => item.uid !== file.uid)
63 })
64 if (onRemove) {
65 onRemove(file)
66 }
67 }
68
69 const handleClick = () => {
70 if (fileInput.current) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected