mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 11:14:05 +00:00
@uppy/status-bar: remove throttled component (#4396)
Co-authored-by: Murderlon <merlijn@soverin.net>
This commit is contained in:
parent
d1697b0cb8
commit
7fcc7a6bbc
3 changed files with 2 additions and 9 deletions
|
|
@ -30,7 +30,6 @@
|
|||
"@transloadit/prettier-bytes": "0.0.9",
|
||||
"@uppy/utils": "workspace:^",
|
||||
"classnames": "^2.2.6",
|
||||
"lodash": "^4.17.21",
|
||||
"preact": "^10.5.13"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { h } from 'preact'
|
||||
import classNames from 'classnames'
|
||||
import throttle from 'lodash/throttle.js'
|
||||
import prettierBytes from '@transloadit/prettier-bytes'
|
||||
import prettyETA from '@uppy/utils/lib/prettyETA'
|
||||
|
||||
|
|
@ -283,11 +282,6 @@ function UploadNewlyAddedFiles (props) {
|
|||
)
|
||||
}
|
||||
|
||||
const ThrottledProgressDetails = throttle(ProgressDetails, 500, {
|
||||
leading: true,
|
||||
trailing: true,
|
||||
})
|
||||
|
||||
function ProgressBarUploading (props) {
|
||||
const {
|
||||
i18n,
|
||||
|
|
@ -305,6 +299,7 @@ function ProgressBarUploading (props) {
|
|||
totalETA,
|
||||
startUpload,
|
||||
} = props
|
||||
|
||||
const showUploadNewlyAddedFiles = newFiles && isUploadStarted
|
||||
|
||||
if (!isUploadStarted || isAllComplete) {
|
||||
|
|
@ -317,7 +312,7 @@ function ProgressBarUploading (props) {
|
|||
if (!isAllPaused && !showUploadNewlyAddedFiles && showProgressDetails) {
|
||||
if (supportsUploadProgress) {
|
||||
return (
|
||||
<ThrottledProgressDetails
|
||||
<ProgressDetails
|
||||
numUploads={numUploads}
|
||||
complete={complete}
|
||||
totalUploadedSize={totalUploadedSize}
|
||||
|
|
|
|||
|
|
@ -10890,7 +10890,6 @@ __metadata:
|
|||
"@transloadit/prettier-bytes": 0.0.9
|
||||
"@uppy/utils": "workspace:^"
|
||||
classnames: ^2.2.6
|
||||
lodash: ^4.17.21
|
||||
preact: ^10.5.13
|
||||
peerDependencies:
|
||||
"@uppy/core": "workspace:^"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue