fix: jiji forgot to add the progress bar on pre process
This commit is contained in:
parent
8235f516e9
commit
377976b8b2
|
@ -350,11 +350,17 @@ const UploadFileItem = ({
|
|||
</div>
|
||||
) : null}
|
||||
|
||||
{file.progress?.preprocess ? (
|
||||
<p className="text-sm text-primary-2 ml-2">Processing...</p>
|
||||
{file.progress?.preprocess || true ? (
|
||||
<div>
|
||||
<p className="text-sm text-primary-2 ml-2">{file.progress?.preprocess?.value ?? "Processing..."}</p>
|
||||
<Progress max={100} value={file.progress?.preprocess?.value ?? 0} className="mt-2" />
|
||||
</div>
|
||||
) : null}
|
||||
{file.progress?.uploadStarted && !file.progress.uploadComplete ? (
|
||||
<div>
|
||||
<p className="text-sm text-primary-2 ml-2">Uploading...</p>
|
||||
<Progress max={100} value={file.progress.percentage} className="mt-2" />
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue