From cd95c7d7493de45b030581a547ebec792fb15a40 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Mon, 2 Sep 2024 12:32:40 +0200 Subject: [PATCH] fix(compensations): move Norway-only disclaimer from deprecated salaryAndBenefits to compensations --- studio/schemas/documents/compensations.ts | 9 ++++++++- studio/schemas/documents/salaryAndBenefits.ts | 8 -------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index 098b49db4..6e8f0ca14 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -3,6 +3,7 @@ import { titleSlug } from "../schemaTypes/slug"; import seo from "../objects/seo"; import { title } from "../fields/text"; import { benefitId } from "./benefit"; +import MultiLineDescription from "../../components/MultiLineDescription"; export const compensationsId = "compensations"; @@ -17,7 +18,13 @@ const compensations = defineType({ defineField({ name: "showSalaryCalculator", title: "Show Salary Calculator", - description: "Should the salary calculator be visible on the page?", + description: MultiLineDescription({ + lines: [ + "Should the salary calculator be visible on the page?", + "🇳🇴 Only for Norway", + ], + style: { paddingBottom: "0.35rem" }, + }), type: "boolean", initialValue: true, }), diff --git a/studio/schemas/documents/salaryAndBenefits.ts b/studio/schemas/documents/salaryAndBenefits.ts index d514199da..8f671637b 100644 --- a/studio/schemas/documents/salaryAndBenefits.ts +++ b/studio/schemas/documents/salaryAndBenefits.ts @@ -3,7 +3,6 @@ import { title } from "../fields/text"; import { titleSlug } from "../schemaTypes/slug"; import seo from "../objects/seo"; import { benefitId } from "./benefit"; -import MultiLineDescription from "../../components/MultiLineDescription"; // TODO: deprecated, drop support once important deployments have updated @@ -22,13 +21,6 @@ const salaryAndBenefits = defineType({ defineField({ name: "showSalaryCalculator", title: "Show Salary Calculator", - description: MultiLineDescription({ - lines: [ - "Should the salary calculator be visible on the page?", - "🇳🇴 Only for Norway", - ], - style: { paddingBottom: "0.35rem" }, - }), type: "boolean", initialValue: true, }),