diff --git a/apps/portal/src/components/offers/constants.ts b/apps/portal/src/components/offers/constants.ts index d8960877..ba77fce1 100644 --- a/apps/portal/src/components/offers/constants.ts +++ b/apps/portal/src/components/offers/constants.ts @@ -22,29 +22,6 @@ export const titleOptions = [ }, ]; -export const companyOptions = [ - { - label: 'Amazon', - value: 'cl93patjt0000txewdi601mub', - }, - { - label: 'Microsoft', - value: 'cl93patjt0001txewkglfjsro', - }, - { - label: 'Apple', - value: 'cl93patjt0002txewf3ug54m8', - }, - { - label: 'Google', - value: 'cl93patjt0003txewyiaky7xx', - }, - { - label: 'Meta', - value: 'cl93patjt0004txew88wkcqpu', - }, -]; - export const locationOptions = [ { label: 'Singapore, Singapore', diff --git a/apps/portal/src/components/offers/forms/BackgroundForm.tsx b/apps/portal/src/components/offers/forms/BackgroundForm.tsx index 1ff89c1e..858c357a 100644 --- a/apps/portal/src/components/offers/forms/BackgroundForm.tsx +++ b/apps/portal/src/components/offers/forms/BackgroundForm.tsx @@ -2,7 +2,6 @@ import { useFormContext, useWatch } from 'react-hook-form'; import { Collapsible, RadioList } from '@tih/ui'; import { - companyOptions, educationFieldOptions, educationLevelOptions, emptyOption, @@ -14,6 +13,7 @@ import FormRadioList from '~/components/offers/forms/components/FormRadioList'; import FormSelect from '~/components/offers/forms/components/FormSelect'; import FormTextInput from '~/components/offers/forms/components/FormTextInput'; import { JobType } from '~/components/offers/types'; +import CompaniesTypeahead from '~/components/shared/CompaniesTypeahead'; import { CURRENCY_OPTIONS } from '~/utils/offers/currency/CurrencyEnum'; @@ -74,7 +74,7 @@ function YoeSection() { } function FullTimeJobFields() { - const { register } = useFormContext(); + const { register, setValue } = useFormContext(); return ( <>