Skip to content

Commit

Permalink
fix: uplaod text
Browse files Browse the repository at this point in the history
  • Loading branch information
lulu-tro committed Oct 18, 2024
1 parent bc8462f commit 20c8ee2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Modals/DownloadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function DownloadModal({ color }) {
{err && percentage < 100 && <Progress type="circle" percent={percentage} status="exception" />}
{percentage >= 100 && <Progress type="circle" percent={percentage} />}
<div className="font-semibold mt-4 w-full overflow-auto text-center">
{err ? t({ id: 'download_fail' }) : percentage > 99 ? t({ id: 'download_success' }) : t({ id:'downloading' }) }
{err ? t('download_fail') : percentage > 99 ? t('download_success') : t('downloading') }
&nbsp;
<span className={themeStyle.title[color]}>{name.current}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/S3DownloadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function S3DownloadModal({ color }) {
{err && percentage < 100 && <Progress type="circle" percent={percentage} status="exception" />}
{percentage >= 100 && <Progress type="circle" percent={percentage} />}
<div className="font-semibold mt-4 w-full overflow-auto text-center">
{err ? t({ id: 'download_fail' }) : percentage > 99 ? t({ id: 'download_success' }) : t({ id:'downloading' }) }
{err ? t('download_fail') : percentage > 99 ? t('download_success') : t('downloading') }
&nbsp;
<span className={themeStyle.title[color]}>{name.current}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/S3UploadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function S3UploadModal({ color }) {
{!err && <Progress type="circle" percent={percentage} />}
{err && <Progress type="circle" percent={percentage} status="exception" />}
<div className="font-semibold mt-4 w-full overflow-auto text-center">
{err ? t({ id: 'upload_fail' }) : percentage > 99 ? t({ id: 'upload_success' }) : t({ id: 'uploading' }) }
{err ? t('upload_fail') : percentage > 99 ? t('upload_success') : t('uploading') }
&nbsp;
<span className={themeStyle.title[color]}>{name.current}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modals/UploadModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function UploadModal({ color }) {
{!err && <Progress type="circle" percent={percentage} />}
{err && <Progress type="circle" percent={percentage} status="exception" />}
<div className="font-semibold mt-4 w-full overflow-auto text-center">
{err ? t({ id: 'upload_fail' }) : percentage > 99 ? t({ id: 'upload_success' }) : t({ id: 'uploading' }) }
{err ? t('upload_fail') : percentage > 99 ? t('upload_success') : t('uploading') }
&nbsp;
<span className={themeStyle.title[color]}>{name.current}</span>
</div>
Expand Down

0 comments on commit 20c8ee2

Please sign in to comment.