From c646fce95b94960667257d3d3b139ee4841ac8a5 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Thu, 29 Aug 2024 15:04:22 +0200 Subject: [PATCH] feat(salaryAndBenefits): comment out yearlySalaries field until new structure is ready --- studio/schemas/documents/salaryAndBenefits.ts | 73 ++++++++++--------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/studio/schemas/documents/salaryAndBenefits.ts b/studio/schemas/documents/salaryAndBenefits.ts index e5eb2cdf3..0c5449349 100644 --- a/studio/schemas/documents/salaryAndBenefits.ts +++ b/studio/schemas/documents/salaryAndBenefits.ts @@ -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",