“Accept” giving headaches in React Dropzone
Error thrown in terminal:
Argument of type ‘{ accept: { ‘image/png’: string[]; ‘text/html’: string[]; }; maxFiles: number; onDrop: (acceptedFiles: T[]) => void; }’ is not assignable to parameter of type ‘DropzoneOptions’.
Type ‘{ accept: { ‘image/png’: string[]; ‘text/html’: string[]; }; maxFiles: number; onDrop: (acceptedFiles: T[]) => void; }’ is missing the following properties from type ‘Pick<React.HTMLProps, PropTypes>’: multiple, onDragEnter, onDragOver, onDragLeave