From cfdfea27211e68ffe2b91da5b0fce9e30e7ab8da Mon Sep 17 00:00:00 2001 From: Shardendu Mishra Date: Sun, 26 Jan 2025 19:28:39 +0530 Subject: [PATCH] fix: errors corrected (#15) * fix: clean up code style and formatting across multiple files * fix: add missing newline at end of package.json * fix: standardize casing in schema types and structure definitions * fix: improve casing consistency in schema types and structure definitions --- package.json | 2 +- src/sanity/schemaTypes/index.ts | 3 --- .../researchDevelopment/KrcDataTel.ts | 2 +- src/sanity/structure.ts | 23 ++++++++++++++++--- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 05c1212..ebafdb7 100644 --- a/package.json +++ b/package.json @@ -70,4 +70,4 @@ "typescript": "^5" }, "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a" -} \ No newline at end of file +} diff --git a/src/sanity/schemaTypes/index.ts b/src/sanity/schemaTypes/index.ts index cb048fe..6a36d75 100644 --- a/src/sanity/schemaTypes/index.ts +++ b/src/sanity/schemaTypes/index.ts @@ -73,13 +73,10 @@ export const schema: { types: SchemaTypeDefinition[] } = { Club, NIRF, Tender, - AnnualReport, - ContactInf, ContactCategory, ContactData, - EventInfo, Gallery, MainCarouselImage, diff --git a/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts b/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts index f2316cf..24fb87d 100644 --- a/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts +++ b/src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts @@ -1,7 +1,7 @@ import { defineType, defineField } from 'sanity'; export const krcDataTel = defineType({ - name: 'krcDataTEL', + name: 'krcDataTel', title: 'Krc Data TEL(First three)', type: 'document', fields: [ diff --git a/src/sanity/structure.ts b/src/sanity/structure.ts index ce42013..29236e9 100644 --- a/src/sanity/structure.ts +++ b/src/sanity/structure.ts @@ -19,8 +19,8 @@ export const structure: StructureResolver = (S) => .title('About') .child(S.documentTypeList('about').title('About')), S.listItem() - .title('Chairperson') - .child(S.documentTypeList('chairPerson').title('Chairperson')), + .title('Chair Person') + .child(S.documentTypeList('chairPerson').title('Chair Person')), S.listItem() .title('Contact') .child(S.documentTypeList('contact').title('Contact')), @@ -35,6 +35,23 @@ export const structure: StructureResolver = (S) => S.list() .title('Academics') .items([ + S.listItem() + .title('Seat Structure') + .child( + S.documentTypeList('seatStructure').title('Seat Structure') + ), + S.listItem() + .title('Links Structure') + .child( + S.documentTypeList('linksStructure').title('Links Structure') + ), + S.listItem() + .title('Description Structure') + .child( + S.documentTypeList('descriptionStructure').title( + 'Description Structure' + ) + ), S.listItem() .title('CSE Academic') .child(S.documentTypeList('cseDetail').title('CSE')), @@ -83,7 +100,7 @@ export const structure: StructureResolver = (S) => .child(S.documentTypeList('krcData').title('KRC Data')), S.listItem() .title('KRC Data Tel') - .child(S.documentTypeList('krcDataTEL').title('KRC Data Tel')), + .child(S.documentTypeList('krcDataTel').title('KRC Data Tel')), S.listItem() .title('KRC Data Tel Full') .child(