MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / RejectedFileList

Function RejectedFileList

src/index.spec.js:2570–2585  ·  view source on GitHub ↗
({ fileRejections = [] })

Source from the content-addressed store, hash-verified

2568 );
2569
2570 const RejectedFileList = ({ fileRejections = [] }) => (
2571 <ul>
2572 {fileRejections.map(({ file, errors }) => (
2573 <li key={file.name}>
2574 <span data-type={"rejected"}>{file.name}</span>
2575 <ul>
2576 {errors.map((e) => (
2577 <li key={e.code} data-type={"error"}>
2578 {e.code}
2579 </li>
2580 ))}
2581 </ul>
2582 </li>
2583 ))}
2584 </ul>
2585 );
2586
2587 const getAcceptedFiles = (node) =>
2588 node.querySelectorAll(`[data-type="accepted"]`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…