diff --git a/studio/lib/payloads/compensations.ts b/studio/lib/payloads/compensations.ts index e2303930d..11c0f471a 100644 --- a/studio/lib/payloads/compensations.ts +++ b/studio/lib/payloads/compensations.ts @@ -54,6 +54,6 @@ export interface CompensationsPage { pensionPercent?: number; benefitsByLocation: BenefitsByLocation[]; bonusesByLocation: BonusesByLocationPage[]; - salaries: SalariesByLocation[]; + salariesByLocation: SalariesByLocation[]; showSalaryCalculator: boolean; } diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index ab12972fc..a0b2839c8 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -3,7 +3,7 @@ import { titleSlug } from "../schemaTypes/slug"; import seo from "../objects/seo"; import { title } from "../fields/text"; import { bonusesByLocation } from "../objects/compensations/bonusesByLocation"; -import { pension } from "../objects/compensations/pension"; +import { pensionPercent } from "../objects/compensations/pension"; import { benefitsByLocation } from "../objects/compensations/benefitsByLocation"; import { salariesByLocation } from "../objects/compensations/salariesByLocation"; @@ -29,7 +29,7 @@ const compensations = defineType({ type: "boolean", initialValue: true, }), - pension, + pensionPercent, bonusesByLocation, benefitsByLocation, salariesByLocation, diff --git a/studio/schemas/objects/compensations/pension.ts b/studio/schemas/objects/compensations/pension.ts index bdaeefa30..cb6469f14 100644 --- a/studio/schemas/objects/compensations/pension.ts +++ b/studio/schemas/objects/compensations/pension.ts @@ -1,6 +1,6 @@ import { defineField } from "sanity"; -export const pension = defineField({ +export const pensionPercent = defineField({ name: "pensionPercent", title: "Pension Percentage", type: "number", diff --git a/studio/schemas/objects/compensations/salariesByLocation.ts b/studio/schemas/objects/compensations/salariesByLocation.ts index 134bbd55c..a7090f7a5 100644 --- a/studio/schemas/objects/compensations/salariesByLocation.ts +++ b/studio/schemas/objects/compensations/salariesByLocation.ts @@ -9,7 +9,7 @@ import { SalariesInput } from "../../../components/salariesInput/SalariesInput"; import { SalariesPage } from "../../../lib/payloads/compensations"; export const salariesByLocation = defineField({ - name: "salaries", + name: "salariesByLocation", title: "Salaries by Location", description: "Yearly salary data specific to a particular location. Each location should have a unique entry with the yearly salaries for that location.",