Skip to content

Commit

Permalink
Merge pull request #1026 from ManishMadan2882/main
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Jul 3, 2024
2 parents 2985e3b + 4d74934 commit ffddf10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@reduxjs/toolkit": "^1.9.2",
"@vercel/analytics": "^0.1.10",
"i18next": "^23.11.5",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Upload({
}
}, []);

function ProgressBar({ progress }: { progress: number }) {
function ProgressBar({ progressPercent }: { progressPercent: number }) {
return (
<div className="my-5 w-[50%]">
<div
Expand All @@ -65,9 +65,9 @@ function Upload({
className={`h-full border-none p-1 w-${
progress || 0
}% flex items-center justify-center bg-purple-30 outline-none transition-all`}
style={{ width: `${progress || 0}%` }}
style={{ width: `${progressPercent || 0}%` }}
>
{progress >= 5 && `${progress}%`}
{progressPercent >= 5 && `${progressPercent}%`}
</div>
</div>
</div>
Expand All @@ -93,7 +93,7 @@ function Upload({
{/* <p className="mt-10 text-2xl">{progress?.percentage || 0}%</p> */}

{/* progress bar */}
<ProgressBar progress={progress?.percentage as number} />
<ProgressBar progressPercent={progress?.percentage as number} />

<button
onClick={() => {
Expand Down

0 comments on commit ffddf10

Please sign in to comment.