-
Notifications
You must be signed in to change notification settings - Fork 28
Feat : Added drag-n-drop + preview to upload #238
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: staging
Are you sure you want to change the base?
Conversation
className="relative h-20 w-20 cursor-pointer" | ||
{...getRootProps()} | ||
> | ||
<input {...getInputProps()} /> |
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.
use shadCN input
title="Delete" | ||
> | ||
<FiTrash className="h-5 w-5 text-white" /> | ||
</button> |
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.
use shadCN buttons
<svg | ||
className="mt-2 h-10 w-10 animate-bounce text-[#6D28D9]" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 10l5-5m0 0l5 5m-5-5v12" | ||
/> | ||
</svg> |
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.
Create a SVG file instead. Looks like an icon, if possible use lucide.
"@dnd-kit" was installed but updated package json is not added to git tracking!? |
Disable the delete and drag and drop functionality when the file is uploading |
Upload a PDF and upload another PDF. Now, there's only 1 pdf visible but when you delete that preview the older pdf file's preview is still underneath it. |
Closing PR due to inactivity |
No description provided.