diff --git a/apps/mobile/src/components/job/Job.tsx b/apps/mobile/src/components/job/Job.tsx index e8f359266..a9ccdac90 100644 --- a/apps/mobile/src/components/job/Job.tsx +++ b/apps/mobile/src/components/job/Job.tsx @@ -1,3 +1,4 @@ +import { JobProgressEvent, JobReport, useJobInfo } from '@sd/client'; import { Copy, Fingerprint, @@ -10,8 +11,7 @@ import { } from 'phosphor-react-native'; import { memo } from 'react'; import { View, ViewStyle } from 'react-native'; -import { JobProgressEvent, JobReport, useJobInfo } from '@sd/client'; -import { tw } from '~/lib/tailwind'; +import { tw, twStyle } from '~/lib/tailwind'; import { ProgressBar } from '../animation/ProgressBar'; import JobContainer from './JobContainer'; @@ -33,7 +33,7 @@ const JobIcon: Record = { object_validator: Fingerprint }; -function Job({ job, isChild, progress }: JobProps) { +function Job({ job, isChild, progress, containerStyle }: JobProps) { const jobData = useJobInfo(job, progress); if (job.status === 'CompletedWithErrors') { @@ -42,7 +42,7 @@ function Job({ job, isChild, progress }: JobProps) { //
 		// 		{job.errors_text.map((error, i) => (
 		// 			

// {error.trim()} @@ -70,6 +70,7 @@ function Job({ job, isChild, progress }: JobProps) { return ( {typeof Icon === 'number' ? ( - + ) : ( Icon && ( {filteredItems.map((item, index) => { const Icon = item?.icon; return ( + {Icon && ( )} - {item?.text} - {index < filteredItems.length - 1 && } + {item?.text} + {index < filteredItems.length - 1 && } + ); })} diff --git a/apps/mobile/src/components/job/JobGroup.tsx b/apps/mobile/src/components/job/JobGroup.tsx index 81c37102b..060b4e729 100644 --- a/apps/mobile/src/components/job/JobGroup.tsx +++ b/apps/mobile/src/components/job/JobGroup.tsx @@ -126,14 +126,22 @@ export default function ({ group, progress }: JobGroupProps) { {showChildJobs && ( - - {jobs.map((job) => ( + + {jobs.map((job, i) => ( + + + 1} - key={job.id} job={job} progress={progress[job.id] ?? null} /> + ))} )}