Skip to content

Commit d108d1b

Browse files
committed
Added a company name field
1 parent 5798f93 commit d108d1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/CreateJobModal.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ function CreateJobModal(props) {
2929
const title = formData.get("title");
3030
const description = formData.get("description");
3131
const location = formData.get("location");
32+
const company_name = formData.get("company_name")
3233
const data = {
3334
title,
3435
description,
3536
location,
37+
company_name,
3638
min_salary,
3739
max_salary,
3840
};
@@ -74,6 +76,7 @@ function CreateJobModal(props) {
7476
<DialogTitle>Create New Job</DialogTitle>
7577
<form className="form" onSubmit={submitNewJob}>
7678
<TextField name="title" label="Job Title" required />
79+
<TextField name="company_name" label = "Company Name" required />
7780
<TextField
7881
name="description"
7982
label="Job Description"

0 commit comments

Comments
 (0)