fix: jiji forgot to add the progress bar on pre process

This commit is contained in:
Juan Di Toro 2024-03-29 00:42:27 +01:00
parent 8235f516e9
commit 377976b8b2
1 changed files with 9 additions and 3 deletions

View File

@ -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 ? (
<Progress max={100} value={file.progress.percentage} className="mt-2" /> <div>
<p className="text-sm text-primary-2 ml-2">Uploading...</p>
<Progress max={100} value={file.progress.percentage} className="mt-2" />
</div>
) : null} ) : null}
</div> </div>
); );