@@ -80,7 +84,9 @@ Injects `downloadFile` as a prop.
...
@@ -80,7 +84,9 @@ Injects `downloadFile` as a prop.
### withFileDownload props
### withFileDownload props
*`downloadFile: (file: {id: string, name: string}) => any`: downloads the file specified as a parameter. The wrapped component should have the authentication token in a prop called `token` in order for this to work.
| downloadFile | `(file: {id: string, name: string}) => any` | Downloads the file specified as a parameter. The wrapped component should have the authentication token in a prop called `token` in order for this to work. |
*`maxFiles: number`: the maximum number of files allowed
| listId | `string` | Current list id. |
*`changeList: (fromListId: string, toListId: string: fileId: string)`: callback called if all the conditions are met (allowed files, number of files, etc)