()
| 46 | }; |
| 47 | |
| 48 | const startUploading = () => { |
| 49 | if (!filesRef.current.length) { |
| 50 | return; |
| 51 | } |
| 52 | |
| 53 | setQueueCount(filesRef.current.length); |
| 54 | |
| 55 | if (!queueCount) { |
| 56 | uploadImage(filesRef.current.pop()); |
| 57 | } |
| 58 | }; |
| 59 | |
| 60 | const pushUpload = (file: File) => { |
| 61 | filesRef.current.push(file); |
no test coverage detected