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>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
{file.progress?.preprocess ? (
|
{file.progress?.preprocess || true ? (
|
||||||
<p className="text-sm text-primary-2 ml-2">Processing...</p>
|
<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}
|
) : null}
|
||||||
{file.progress?.uploadStarted && !file.progress.uploadComplete ? (
|
{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" />
|
<Progress max={100} value={file.progress.percentage} className="mt-2" />
|
||||||
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue