Skip to content

Commit f43c877

Browse files
committed
fix industry dropdown for contribution form
1 parent 45fa4b8 commit f43c877

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

app/contribute/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -536,19 +536,11 @@ function ContributeForm() {
536536
<Combobox
537537
id="industry"
538538
label="Industry"
539-
placeholder="Select or enter an industry"
539+
placeholder="Select an industry"
540540
options={meta.industries}
541541
value={formData.industry}
542542
onChange={handleIndustryChange}
543-
allowAddNew={true}
544543
/>
545-
{warnings.industry && (
546-
<div className="mt-2 p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
547-
<p className="text-sm text-yellow-800 dark:text-yellow-200">
548-
<strong>⚠️ New industry:</strong> "{warnings.industry}" is not in our database. Please verify the name is correct and doesn't already exist with different spelling.
549-
</p>
550-
</div>
551-
)}
552544
</>
553545
)}
554546
{errors.industry && (

data/companies/instawork.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "instawork",
33
"name": "Instawork",
4-
"industry": "career or jobs",
4+
"industry": "career-or-jobs",
55
"resources": [
66
{
77
"id": "i-stopped-writing-e2e-tests-manually-i-m-7fde0464",

data/schemas/company.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"healthcare",
3535
"government",
3636
"telecommunications",
37+
"career-or-jobs",
3738
"other"
3839
],
3940
"description": "Industry category"

0 commit comments

Comments
 (0)