Skip to content

Commit

Permalink
refactor(companyLocation): singular file and constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 5, 2024
1 parent 4a5b913 commit 8cfc7b8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions studio/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import posts from "./schemas/documents/post";
import categories from "./schemas/fields/categories";
import legalDocument from "./schemas/documents/legalDocuments";
import benefit from "./schemas/documents/benefit";
import companyLocations from "./schemas/documents/companyLocations";
import companyLocation from "./schemas/documents/companyLocation";
import compensations from "./schemas/documents/compensations";
import siteSettings from "./schemas/documents/siteSettings";

Expand All @@ -33,6 +33,6 @@ export const schema: { types: SchemaTypeDefinition[] } = {
legalDocument,
compensations,
benefit,
companyLocations,
companyLocation,
],
};
2 changes: 1 addition & 1 deletion studio/schemas/deskStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { soMeLinksID } from "./documents/socialMediaProfiles";
import { companyInfoID } from "./documents/companyInfo";
import { legalDocumentID } from "./documents/legalDocuments";
import { compensationsId } from "./documents/compensations";
import { companyLocationID } from "./documents/companyLocations";
import { companyLocationID } from "./documents/companyLocation";

export default (S: StructureBuilder) =>
S.list()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineField, defineType } from "sanity";
export const companyLocationID = "companyLocation";
export const companyLocationNameID = "companyLocationName";

const companyLocations = defineType({
const companyLocation = defineType({
name: companyLocationID,
type: "document",
title: "Location",
Expand All @@ -17,4 +17,4 @@ const companyLocations = defineType({
],
});

export default companyLocations;
export default companyLocation;
2 changes: 1 addition & 1 deletion studio/schemas/objects/compensations/bonusesByLocation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineField } from "sanity";
import { location, locationID } from "../locations";
import { companyLocationNameID } from "studio/schemas/documents/companyLocations";
import { companyLocationNameID } from "studio/schemas/documents/companyLocation";

export const bonusesByLocation = defineField({
name: "bonusesByLocation",
Expand Down
2 changes: 1 addition & 1 deletion studio/schemas/objects/locations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineField } from "sanity";
import { companyLocationID } from "../documents/companyLocations";
import { companyLocationID } from "../documents/companyLocation";

export const locationsID = "locations";
export const locationID = "location";
Expand Down

0 comments on commit 8cfc7b8

Please sign in to comment.