Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ const MIN_CHARS_COUNT = 200

const validationSchema = Yup.object().shape({
title: Yup.string().required('Please provide a job title'),
location: Yup.string().required('Please provide a location'),
location: Yup.string().required('Please provide a work location'),
federalState: Yup.array().min(1, 'Please select at least one federal state'),
summary: Yup.string().required().min(MIN_CHARS_COUNT),
relatesToPositions: Yup.array().min(
1,
Expand Down Expand Up @@ -259,15 +260,17 @@ function ModalForm({
/>
<FormInput
name={`location`}
placeholder="Where is the position based"
label="Location*"
placeholder="City where is the position based"
label="City*"
{...formik}
/>
<FormSelect
name="federalState"
label="Location (Federal State in Germany)"
label="Federal State in Germany*"
placeholder="State where is the position based"
items={federalStatesOptions}
{...formik}
multiselect
/>
<Checkbox.Form
name="isRemotePossible"
Expand Down
1 change: 1 addition & 0 deletions libs/shared-types/src/lib/TpJobListing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type TpJobListing = {
id: string
title?: string
location?: string
federalState: string[]
summary?: string
idealTechnicalSkills?: string[]
relatesToPositions?: string[]
Expand Down