Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit c848e26

Browse files
committed
fix: issue #120
1 parent 3fb3593 commit c848e26

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/constants/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,17 @@ export const WORKLOAD_OPTIONS = [
266266
{ value: "fractional", label: "fractional" },
267267
];
268268

269+
/**
270+
* resourceType options
271+
*/
272+
export const RESOURCE_TYPE_OPTIONS = [
273+
{ value: null, label: "" },
274+
{ value: "designer", label: "designer" },
275+
{ value: "software-developer", label: "software developer" },
276+
{ value: "data-scientist", label: "data scientist" },
277+
{ value: "data-engineer", label: "data engineer" },
278+
];
279+
269280
/**
270281
* status options
271282
*/

src/routes/JobForm/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
RATE_TYPE_OPTIONS,
88
STATUS_OPTIONS,
99
WORKLOAD_OPTIONS,
10+
RESOURCE_TYPE_OPTIONS,
1011
FORM_ROW_TYPE,
1112
FORM_FIELD_TYPE,
1213
} from "../../constants";
@@ -79,10 +80,9 @@ export const getEditJobConfig = (skillOptions, onSubmit) => {
7980
},
8081
{
8182
label: "Resource Type",
82-
type: FORM_FIELD_TYPE.TEXT,
83+
type: FORM_FIELD_TYPE.SELECT,
8384
name: "resourceType",
84-
maxLength: 255,
85-
placeholder: "Resource Type",
85+
selectOptions: RESOURCE_TYPE_OPTIONS,
8686
},
8787
{
8888
label: "Resource Rate Frequency",

0 commit comments

Comments
 (0)