-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3 - singular form of company location id (#582)
* refactor(companyLocation): consistent plural form of company locations * refactor(companyLocation): singular file and constant name
- Loading branch information
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
studio/schemas/documents/companyLocations.ts → studio/schemas/documents/companyLocation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import { defineField, defineType } from "sanity"; | ||
|
||
export const companyLocationsID = "companyLocations"; | ||
export const companyLocationID = "companyLocation"; | ||
export const companyLocationNameID = "companyLocationName"; | ||
|
||
const companyLocations = defineType({ | ||
name: companyLocationsID, | ||
const companyLocation = defineType({ | ||
name: companyLocationID, | ||
type: "document", | ||
title: "Location", | ||
description: "Content related to an individual location within the company", | ||
fields: [ | ||
defineField({ | ||
name: companyLocationID, | ||
name: companyLocationNameID, | ||
type: "string", | ||
title: "Location", | ||
}), | ||
], | ||
}); | ||
|
||
export default companyLocations; | ||
export default companyLocation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters