-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Block/card upload document #95
Block/card upload document #95
Conversation
|
@all-contributors please add @bazsup for code. |
I've put up a pull request to add @bazsup! 🎉 |
<div {...getRootProps()}> | ||
<Card |
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.
<div {...getRootProps()}> | |
<Card | |
<Card | |
{...getRootProps()} |
It's better to spread the props directly to the card
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.
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.
Found a way to make TypeScript happy in eccf23b:
<Card
{...(getRootProps() as Omit<DropzoneRootProps, "color">)}
variant="plain"
sx={{ minWidth: 300, borderRadius: "xl", boxShadow: "lg" }}
size="sm"
>
Co-authored-by: Siriwat K <siriwatkunaporn@gmail.com>
|
Co-authored-by: Siriwat K <siriwatkunaporn@gmail.com>
|
|
closes #78
Hi @siriwatknp,
⚠️ I have added the
react-dropzone
library for dragging files to the card. Please take a look.