Skip to content

Commit

Permalink
refactor(salaryAndBenefits): revert id object
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Aug 21, 2024
1 parent dec4036 commit 79e2765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions studio/schemas/deskStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export default (S: StructureBuilder) =>
.icon(HeartIcon)
.child(
S.document()
.schemaType(salaryAndBenefitsId._root)
.documentId(salaryAndBenefitsId._root)
.schemaType(salaryAndBenefitsId)
.documentId(salaryAndBenefitsId)
.title("Salary and Benefits"),
),
]);
9 changes: 3 additions & 6 deletions studio/schemas/documents/salaryAndBenefits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,18 @@ import seo from "../objects/seo";
import { title } from "../fields/text";
import { benefitId } from "./benefit";

export const salaryAndBenefitsId = {
_root: "salaryAndBenefits",
showSalaryCalculator: "showSalaryCalculator",
};
export const salaryAndBenefitsId = "salaryAndBenefits";

const salaryAndBenefits = defineType({
name: salaryAndBenefitsId._root,
name: salaryAndBenefitsId,
type: "document",
title: "Salary and Benefits",
fields: [
title,
pageSlug,
seo,
defineField({
name: salaryAndBenefitsId.showSalaryCalculator,
name: "showSalaryCalculator",
title: "Show Salary Calculator",
description: "Should the salary calculator be visible on the page?",
type: "boolean",
Expand Down

0 comments on commit 79e2765

Please sign in to comment.