Skip to content

Commit 7c3bd2f

Browse files
committed
Use key/value for progress
1 parent e42c463 commit 7c3bd2f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/job/JobDisplay.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import TypeSection from '../ui/TypeSection';
66
import TypeArray from '../ui/TypeArray';
77
import getJobDataVariant from '../../utils/getJobDataVariant';
88

9+
// eslint-disable-next-line no-unused-vars
910
const JobTaskProgressTypeUnit = ({ value = {} }) => (
1011
<>
1112
<TextGrid title="percent" value={value.percent} hideNoValue />
@@ -15,12 +16,9 @@ const JobTaskProgressTypeUnit = ({ value = {} }) => (
1516

1617
const JobTaskProgressType = ({ value = {} }) => (
1718
<>
18-
<TextGrid title="Total" value={value.total} hideNoValue hover />
19-
<TypeSection
20-
component={JobTaskProgressTypeUnit}
21-
value={value.unit}
22-
hideNoValue
23-
/>
19+
<TextGrid title="Value" value={value.value} hideNoValue />
20+
<TextGrid title="Total" value={value.total} hideNoValue />
21+
<TextGrid title="Unit" value={value.unit} hideNoValue />
2422
</>
2523
);
2624

0 commit comments

Comments
 (0)