Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename office to location in existing version #563

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.