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

V3- Add offices in company information #556

Merged
merged 7 commits into from
Sep 3, 2024
Merged
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
26 changes: 20 additions & 6 deletions studio/schemas/deskStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import {
ControlsIcon,
ProjectsIcon,
StackCompactIcon,
InfoOutlineIcon,
HeartIcon,
CaseIcon,
anemne marked this conversation as resolved.
Show resolved Hide resolved
HomeIcon,
} from "@sanity/icons";
import { soMeLinksID } from "./documents/socialMediaProfiles";
import { companyInfoID } from "./documents/companyInfo";
import { postId } from "./documents/post";
import { legalDocumentID } from "./documents/legalDocuments";
import { compensationsId } from "./documents/compensations";

Expand All @@ -22,13 +23,26 @@ export default (S: StructureBuilder) =>
.title("Content")
.items([
S.listItem()
.title("Company Information")
.title("Company Details")
anemne marked this conversation as resolved.
Show resolved Hide resolved
.icon(CaseIcon)
.child(
S.document()
.schemaType(companyInfoID)
.documentId(companyInfoID)
.title("Company Information"),
S.list()
.title("Company Details")
.items([
S.listItem()
.title("Company Information")
anemne marked this conversation as resolved.
Show resolved Hide resolved
.icon(InfoOutlineIcon)
.child(
S.document()
.schemaType(companyInfoID)
.documentId(companyInfoID)
.title("Company Information"),
),
S.listItem()
.title("Offices")
.icon(HomeIcon)
.child(S.documentTypeList("office").title("Offices")),
]),
),
S.listItem()
.title("Legal Documents")
Expand Down