Skip to content
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

Merged
merged 5 commits into from
Oct 31, 2023

Conversation

bazsup
Copy link
Contributor

@bazsup bazsup commented Oct 29, 2023

closes #78

Hi @siriwatknp,
⚠️ I have added the react-dropzone library for dragging files to the card. Please take a look.

Screenshot 2023-10-29 at 15 16 02

@siriwatknp
Copy link
Owner

@siriwatknp
Copy link
Owner

@all-contributors please add @bazsup for code.

@allcontributors
Copy link
Contributor

@siriwatknp

I've put up a pull request to add @bazsup! 🎉

Comment on lines 22 to 23
<div {...getRootProps()}>
<Card
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div {...getRootProps()}>
<Card
<Card
{...getRootProps()}

It's better to spread the props directly to the card

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I encountered a TypeScript error while attempting to spread the props into the Card component."

image

Copy link
Owner

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>
@siriwatknp
Copy link
Owner

Co-authored-by: Siriwat K <siriwatkunaporn@gmail.com>
@siriwatknp
Copy link
Owner

@siriwatknp
Copy link
Owner

@siriwatknp siriwatknp merged commit 2e18f41 into siriwatknp:main Oct 31, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] card-upload-document
2 participants