Skip to content

Commit

Permalink
fix: errors corrected (#15)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
MishraShardendu22 authored Jan 26, 2025
1 parent e98eac4 commit cfdfea2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"typescript": "^5"
},
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
}
}
3 changes: 0 additions & 3 deletions src/sanity/schemaTypes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,10 @@ export const schema: { types: SchemaTypeDefinition[] } = {
Club,
NIRF,
Tender,

AnnualReport,

ContactInf,
ContactCategory,
ContactData,

EventInfo,
Gallery,
MainCarouselImage,
Expand Down
2 changes: 1 addition & 1 deletion src/sanity/schemaTypes/researchDevelopment/KrcDataTel.ts
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down
23 changes: 20 additions & 3 deletions src/sanity/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
Expand All @@ -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')),
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit cfdfea2

Please sign in to comment.