Resolve LMS upload.

This commit is contained in:
Patrick Fic
2025-10-31 10:58:53 -07:00
parent beb1145f98
commit ffcaf5d536
5 changed files with 37 additions and 23 deletions

View File

@@ -69,16 +69,20 @@ export function UploadProgress({
<Text variant="titleLarge" style={styles.title}>
{t("general.labels.upload")}
</Text>
<Text variant="labelLarge">
{`${t("general.labels.uploadprogress")} ${Math.round(
completion * 100
)}%`}
</Text>
<ProgressBar
progress={completion}
style={styles.progress}
color={completion === 1 ? "green" : "blue"}
/>
{!photoUploadProgress["Bulk"] && (
<>
<Text variant="labelLarge">
{`${t("general.labels.uploadprogress")} ${Math.round(
completion * 100
)}%`}
</Text>
<ProgressBar
progress={completion}
style={styles.progress}
color={completion === 1 ? "green" : "blue"}
/>
</>
)}
<Divider style={{ marginVertical: 12 }} />
{Object.keys(photoUploadProgress).map((key) => (
<View key={key} style={styles.progressItem}>