Skip to content

Commit

Permalink
Merge pull request #9811 from MohammedFaragallah/react-dropzone
Browse files Browse the repository at this point in the history
Upgrade react-dropzone to v14
  • Loading branch information
djhi authored May 2, 2024
2 parents 8750b80 + 4979e22 commit 496a5d4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/ra-no-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"prop-types": "^15.8.1",
"ra-data-local-storage": "^5.0.0-alpha.1",
"react-admin": "^5.0.0-alpha.1",
"react-dropzone": "^12.0.4"
"react-dropzone": "^14.2.3"
},
"gitHead": "b227592132da6ae5f01438fa8269e04596cdfdd8"
}
4 changes: 3 additions & 1 deletion packages/ra-no-code/src/ui/ImportResourceDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export const ImportResourceDialog = (props: ImportResourceDialogProps) => {
};

const { getRootProps, getInputProps } = useDropzone({
accept: 'text/csv',
accept: {
'text/csv': ['.csv'],
},
onDrop,
});
const { ref, ...rootProps } = getRootProps();
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"lodash": "~4.17.5",
"prop-types": "^15.8.1",
"query-string": "^7.1.1",
"react-dropzone": "^12.0.4",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^3.1.4",
"react-transition-group": "^4.4.5"
},
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12241,12 +12241,12 @@ __metadata:
languageName: node
linkType: hard

"file-selector@npm:^0.4.0":
version: 0.4.0
resolution: "file-selector@npm:0.4.0"
"file-selector@npm:^0.6.0":
version: 0.6.0
resolution: "file-selector@npm:0.6.0"
dependencies:
tslib: "npm:^2.0.3"
checksum: 2c55019ea5db84c0c27a5337028604d8a9fe9a53551eb20f4ad44541dfdfdda6bb576e950ac51d11fc3791247c9407734043a9c68a7fe473925631ffc03442e4
tslib: "npm:^2.4.0"
checksum: 477ca1b56274db9fee1a8a623c4bfef580389726a5fef843af8c1f2f17f70ec2d1e41b29115777c92e120a15f1cca734c6ef36bb48bfa2ee027c68da16cd0d28
languageName: node
linkType: hard

Expand Down Expand Up @@ -18921,7 +18921,7 @@ __metadata:
react: "npm:^18.0.0"
react-admin: "npm:^5.0.0-alpha.1"
react-dom: "npm:^18.2.0"
react-dropzone: "npm:^12.0.4"
react-dropzone: "npm:^14.2.3"
react-router: "npm:^6.22.0"
react-router-dom: "npm:^6.22.0"
rimraf: "npm:^3.0.2"
Expand Down Expand Up @@ -18966,7 +18966,7 @@ __metadata:
ra-language-english: "npm:^5.0.0-alpha.1"
react: "npm:^18.0.0"
react-dom: "npm:^18.2.0"
react-dropzone: "npm:^12.0.4"
react-dropzone: "npm:^14.2.3"
react-error-boundary: "npm:^3.1.4"
react-hook-form: "npm:^7.43.9"
react-is: "npm:^18.2.0"
Expand Down Expand Up @@ -19237,16 +19237,16 @@ __metadata:
languageName: node
linkType: hard

"react-dropzone@npm:^12.0.4":
version: 12.0.4
resolution: "react-dropzone@npm:12.0.4"
"react-dropzone@npm:^14.2.3":
version: 14.2.3
resolution: "react-dropzone@npm:14.2.3"
dependencies:
attr-accept: "npm:^2.2.2"
file-selector: "npm:^0.4.0"
file-selector: "npm:^0.6.0"
prop-types: "npm:^15.8.1"
peerDependencies:
react: ">= 16.8"
checksum: 896f99a343b2e078f85023df93b5a75a04fdd53e3adafee778fcc905db2e5eb9eb68b6d4031ebe438af495b4619c4d2d0a43ca454868d2328df36c3436b72b30
react: ">= 16.8 || 18.0.0"
checksum: 6433517c53309aca1bb4f4a535aeee297345ca1e11b123676f46c7682ffab34a3428cbda106448fc92b5c9a5e0fa5d225bc188adebcd4d302366bf6b1f9c3fc1
languageName: node
linkType: hard

Expand Down

0 comments on commit 496a5d4

Please sign in to comment.