Skip to content

Commit

Permalink
fix(compensations): move Norway-only disclaimer from deprecated salar…
Browse files Browse the repository at this point in the history
…yAndBenefits to compensations
  • Loading branch information
mathiazom committed Sep 2, 2024
1 parent 7f60ad7 commit cd95c7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 8 additions & 1 deletion studio/schemas/documents/compensations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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,
}),
Expand Down
8 changes: 0 additions & 8 deletions studio/schemas/documents/salaryAndBenefits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
}),
Expand Down

0 comments on commit cd95c7d

Please sign in to comment.