|
|
@ -72,7 +72,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
placeholder={emptyOption}
|
|
|
|
placeholder={emptyOption}
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersFullTime.title`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.title`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<FormTextInput
|
|
|
|
<FormTextInput
|
|
|
@ -81,7 +81,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
placeholder="e.g. Front End"
|
|
|
|
placeholder="e.g. Front End"
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersFullTime.specialization`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.specialization`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -99,7 +99,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
placeholder="e.g. L4, Junior"
|
|
|
|
placeholder="e.g. L4, Junior"
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersFullTime.level`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.level`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -112,7 +112,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
placeholder={emptyOption}
|
|
|
|
placeholder={emptyOption}
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.location`, {
|
|
|
|
{...register(`offers.${index}.location`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<FormMonthYearPicker
|
|
|
|
<FormMonthYearPicker
|
|
|
@ -120,7 +120,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
monthRequired={true}
|
|
|
|
monthRequired={true}
|
|
|
|
yearLabel=""
|
|
|
|
yearLabel=""
|
|
|
|
{...register(`offers.${index}.monthYearReceived`, {
|
|
|
|
{...register(`offers.${index}.monthYearReceived`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -135,7 +135,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
{...register(
|
|
|
|
{...register(
|
|
|
|
`offers.${index}.offersFullTime.totalCompensation.currency`,
|
|
|
|
`offers.${index}.offersFullTime.totalCompensation.currency`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -153,8 +153,8 @@ function FullTimeOfferDetailsForm({
|
|
|
|
{...register(
|
|
|
|
{...register(
|
|
|
|
`offers.${index}.offersFullTime.totalCompensation.value`,
|
|
|
|
`offers.${index}.offersFullTime.totalCompensation.value`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
min: { message: FieldError.NonNegativeNumber, value: 0 },
|
|
|
|
min: { message: FieldError.NON_NEGATIVE_NUMBER, value: 0 },
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)}
|
|
|
|
)}
|
|
|
@ -171,7 +171,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
{...register(
|
|
|
|
{...register(
|
|
|
|
`offers.${index}.offersFullTime.baseSalary.currency`,
|
|
|
|
`offers.${index}.offersFullTime.baseSalary.currency`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -185,8 +185,8 @@ function FullTimeOfferDetailsForm({
|
|
|
|
startAddOnType="label"
|
|
|
|
startAddOnType="label"
|
|
|
|
type="number"
|
|
|
|
type="number"
|
|
|
|
{...register(`offers.${index}.offersFullTime.baseSalary.value`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.baseSalary.value`, {
|
|
|
|
min: { message: FieldError.NonNegativeNumber, value: 0 },
|
|
|
|
min: { message: FieldError.NON_NEGATIVE_NUMBER, value: 0 },
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -198,7 +198,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
label="Currency"
|
|
|
|
label="Currency"
|
|
|
|
options={CURRENCY_OPTIONS}
|
|
|
|
options={CURRENCY_OPTIONS}
|
|
|
|
{...register(`offers.${index}.offersFullTime.bonus.currency`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.bonus.currency`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -211,8 +211,8 @@ function FullTimeOfferDetailsForm({
|
|
|
|
startAddOnType="label"
|
|
|
|
startAddOnType="label"
|
|
|
|
type="number"
|
|
|
|
type="number"
|
|
|
|
{...register(`offers.${index}.offersFullTime.bonus.value`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.bonus.value`, {
|
|
|
|
min: { message: FieldError.NonNegativeNumber, value: 0 },
|
|
|
|
min: { message: FieldError.NON_NEGATIVE_NUMBER, value: 0 },
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -226,7 +226,7 @@ function FullTimeOfferDetailsForm({
|
|
|
|
label="Currency"
|
|
|
|
label="Currency"
|
|
|
|
options={CURRENCY_OPTIONS}
|
|
|
|
options={CURRENCY_OPTIONS}
|
|
|
|
{...register(`offers.${index}.offersFullTime.stocks.currency`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.stocks.currency`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -239,8 +239,8 @@ function FullTimeOfferDetailsForm({
|
|
|
|
startAddOnType="label"
|
|
|
|
startAddOnType="label"
|
|
|
|
type="number"
|
|
|
|
type="number"
|
|
|
|
{...register(`offers.${index}.offersFullTime.stocks.value`, {
|
|
|
|
{...register(`offers.${index}.offersFullTime.stocks.value`, {
|
|
|
|
min: { message: FieldError.NonNegativeNumber, value: 0 },
|
|
|
|
min: { message: FieldError.NON_NEGATIVE_NUMBER, value: 0 },
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -300,7 +300,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersIntern.title`, {
|
|
|
|
{...register(`offers.${index}.offersIntern.title`, {
|
|
|
|
minLength: 1,
|
|
|
|
minLength: 1,
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<FormTextInput
|
|
|
|
<FormTextInput
|
|
|
@ -310,7 +310,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersIntern.specialization`, {
|
|
|
|
{...register(`offers.${index}.offersIntern.specialization`, {
|
|
|
|
minLength: 1,
|
|
|
|
minLength: 1,
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -330,7 +330,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
placeholder={emptyOption}
|
|
|
|
placeholder={emptyOption}
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.location`, {
|
|
|
|
{...register(`offers.${index}.location`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -343,7 +343,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
placeholder={emptyOption}
|
|
|
|
placeholder={emptyOption}
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersIntern.internshipCycle`, {
|
|
|
|
{...register(`offers.${index}.offersIntern.internshipCycle`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<FormSelect
|
|
|
|
<FormSelect
|
|
|
@ -354,7 +354,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
placeholder={emptyOption}
|
|
|
|
placeholder={emptyOption}
|
|
|
|
required={true}
|
|
|
|
required={true}
|
|
|
|
{...register(`offers.${index}.offersIntern.startYear`, {
|
|
|
|
{...register(`offers.${index}.offersIntern.startYear`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -365,7 +365,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
monthRequired={true}
|
|
|
|
monthRequired={true}
|
|
|
|
yearLabel=""
|
|
|
|
yearLabel=""
|
|
|
|
{...register(`offers.${index}.monthYearReceived`, {
|
|
|
|
{...register(`offers.${index}.monthYearReceived`, {
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -380,7 +380,7 @@ function InternshipOfferDetailsForm({
|
|
|
|
{...register(
|
|
|
|
{...register(
|
|
|
|
`offers.${index}.offersIntern.monthlySalary.currency`,
|
|
|
|
`offers.${index}.offersIntern.monthlySalary.currency`,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -396,8 +396,8 @@ function InternshipOfferDetailsForm({
|
|
|
|
startAddOnType="label"
|
|
|
|
startAddOnType="label"
|
|
|
|
type="number"
|
|
|
|
type="number"
|
|
|
|
{...register(`offers.${index}.offersIntern.monthlySalary.value`, {
|
|
|
|
{...register(`offers.${index}.offersIntern.monthlySalary.value`, {
|
|
|
|
min: { message: FieldError.NonNegativeNumber, value: 0 },
|
|
|
|
min: { message: FieldError.NON_NEGATIVE_NUMBER, value: 0 },
|
|
|
|
required: FieldError.Required,
|
|
|
|
required: FieldError.REQUIRED,
|
|
|
|
valueAsNumber: true,
|
|
|
|
valueAsNumber: true,
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|