fix the form used by shadcn. I guess it has missing entries or salary input is wrong
I can see the issues with your job form. The main problems are:
salary as an array of strings, but you're using a regular number inputduration and salaryType are defined in the schema but not rendered in the formLet me fix these issues:
Added missing fields:
duration field with proper number input handlingsalaryType field with appropriate select optionsFixed salary field:
ArrayInput component to match the schema's array typeImproved form structure:
Enhanced UX:
Created missing components:
ArrayInput component for handling array inputs with tagsLoadingGlobal component for loading statesThe form now properly handles all the fields defined in your schema and provides a better user experience with proper validation and input handling.
for salary create something like one option if it is fixed and two options for range. if its incentive then base and incentive two options. if its negotiable then salary is optional. all values will be in the array
The salary input now dynamically changes based on the selected salary type:
All values are stored in the salary array as strings, and the form validation ensures the correct number of values are provided for each salary type.