Skip to content

Commit

Permalink
feat(salaryAndBenefits): comment out yearlySalaries field until new s…
Browse files Browse the repository at this point in the history
…tructure is ready
  • Loading branch information
mathiazom committed Aug 29, 2024
1 parent 948e1cb commit c646fce
Showing 1 changed file with 37 additions and 36 deletions.
73 changes: 37 additions & 36 deletions studio/schemas/documents/salaryAndBenefits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,43 @@ const salaryAndBenefits = defineType({
type: "boolean",
initialValue: true,
}),
defineField({
name: "yearlySalaries",
title: "Yearly Salaries",
description: "Salary tiers for each year",
type: "array",
options: {
sortable: false,
},
of: [
{
type: "object",
fields: [
defineField({
name: "year",
title: "Year",
type: "number",
validation: (Rule) => Rule.required().min(2018),
}),
defineField({
name: "salaries",
title: "Salaries",
type: "string",
components: {
input: SalariesInput,
},
}),
],
preview: {
select: {
title: "year",
salaries: "salaries",
},
},
},
],
}),
// TODO: introduce salaries when calculator structure is ready
// defineField({
// name: "yearlySalaries",
// title: "Yearly Salaries",
// description: "Salary tiers for each year",
// type: "array",
// options: {
// sortable: false,
// },
// of: [
// {
// type: "object",
// fields: [
// defineField({
// name: "year",
// title: "Year",
// type: "number",
// validation: (Rule) => Rule.required().min(2018),
// }),
// defineField({
// name: "salaries",
// title: "Salaries",
// type: "string",
// components: {
// input: SalariesInput,
// },
// }),
// ],
// preview: {
// select: {
// title: "year",
// salaries: "salaries",
// },
// },
// },
// ],
// }),
defineField({
name: "benefits",
title: "Benefits",
Expand Down

0 comments on commit c646fce

Please sign in to comment.