This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
import React , { useEffect , useState } from "react" ;
8
8
import PT from "prop-types" ;
9
+ import _ from "lodash" ;
9
10
import Page from "../../components/Page" ;
10
11
import PageHeader from "../../components/PageHeader" ;
11
12
import { useData } from "hooks/useData" ;
@@ -20,6 +21,7 @@ import IconComputer from "../../assets/images/icon-computer.svg";
20
21
import IconDescription from "../../assets/images/icon-description.svg" ;
21
22
import IconOpenings from "../../assets/images/icon-openings.svg" ;
22
23
import Button from "../../components/Button" ;
24
+ import { RESOURCE_TYPE_OPTIONS } from "../../constants" ;
23
25
import { formatDate } from "utils/format" ;
24
26
import "./styles.module.scss" ;
25
27
import { hasPermission } from "utils/permissions" ;
@@ -82,7 +84,13 @@ const JobDetails = ({ teamId, jobId }) => {
82
84
{ job . duration || "TBD" }
83
85
</ DataItem >
84
86
< DataItem title = "Resource Type" icon = { < IconDescription /> } >
85
- { job . resourceType }
87
+ { _ . get (
88
+ _ . find (
89
+ RESOURCE_TYPE_OPTIONS ,
90
+ ( t ) => t . value === job . resourceType
91
+ ) ,
92
+ "label"
93
+ ) }
86
94
</ DataItem >
87
95
< DataItem
88
96
title = "Resource Rate Frequency"
You can’t perform that action at this time.
0 commit comments