Skip to content

Commit

Permalink
Rename office to location in existing version (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne authored Sep 3, 2024
1 parent d04aeba commit 6ba996b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 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 office from "./schemas/documents/office";
import location from "./schemas/documents/location";
import compensations from "./schemas/documents/compensations";
import salaryAndBenefits from "./schemas/documents/salaryAndBenefits";
import siteSettings from "./schemas/documents/siteSettings";
Expand All @@ -35,6 +35,6 @@ export const schema: { types: SchemaTypeDefinition[] } = {
compensations,
salaryAndBenefits,
benefit,
office,
location,
],
};
14 changes: 14 additions & 0 deletions studio/schemas/documents/location.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineType } from "sanity";
import { title } from "../fields/text";

export const locationId = "location";

const location = defineType({
name: locationId,
type: "document",
title: "Location",
description: "Content related to an individual location within the company",
fields: [title],
});

export default location;
14 changes: 0 additions & 14 deletions studio/schemas/documents/office.ts

This file was deleted.

0 comments on commit 6ba996b

Please sign in to comment.