-
Notifications
You must be signed in to change notification settings - Fork 3
Implement FileUpload component #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/createFileUploadComponentForBetterUppyUsage-CMEM-5925
Are you sure you want to change the base?
Implement FileUpload component #269
Conversation
| import "@uppy/drag-drop/dist/style.css"; | ||
| import "@uppy/progress-bar/dist/style.css"; | ||
|
|
||
| export interface FileUploadProps extends TestableComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FileUploadProps probaby should extend also Uppy and HTMLDivElement. Or is there a reason not to do so?
Properties forwarded to Uppy could also be included by the uppyProps pattern that we use also in other components. This way it is more distinct what are our properties, what properties come from Uppy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice the particular reason for this, but if it makes more sense according to the certain pattern, then sure it should be adjusted.
| } | ||
|
|
||
| export const FileUpload: FC<FileUploadProps> = ({ | ||
| export { ProgressBar as UppyProgressBar, DragDrop } from "@uppy/react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be exported as FileUploadProgressBar and FileUploadDragDrop.
No description provided.