Skip to content

Commit

Permalink
feat: add compliance info (#70)
Browse files Browse the repository at this point in the history
* feat: add compliance info

* feat: add complianceInfo and tebuBanner to unique list
  • Loading branch information
flagrede authored Nov 12, 2024
1 parent 43bb6ef commit c357c85
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deskStructure.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,10 @@ export default S =>
.title('Terrasos Project')
.schemaType('terrasosProject')
.child(S.documentTypeList('terrasosProject').title('Terrasos Project')),
S.listItem()
.title('Compliance Info')
.schemaType('complianceInfo')
.child(S.document().schemaType('complianceInfo')),
]),
),
]);
19 changes: 19 additions & 0 deletions schemas/documents/terrasos/complianceInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export default {
name: 'complianceInfo',
type: 'document',
title: 'Compliance Info',
fields: [
{
title: 'Description',
name: 'description',
type: 'customPortableText',
validation: Rule => Rule.required(),
},
{
title: 'Book a call link',
name: 'bookCallLink',
type: 'linkItem',
validation: Rule => Rule.required(),
},
],
};
3 changes: 2 additions & 1 deletion schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import nctPage from './documents/www/nctPage';
import creditCategory from './documents/shared/creditCategory';
import tebuBanner from './documents/terrasos/tebuBanner';
import terrasosProject from './documents/terrasos/terrasosProject';

import complianceInfo from './documents/terrasos/complianceInfo';
export const documentsSchemas = [
homePage,
homePageWeb,
Expand Down Expand Up @@ -133,6 +133,7 @@ export const documentsSchemas = [
creditCategory,
tebuBanner,
terrasosProject,
complianceInfo,
];

// Object types
Expand Down
2 changes: 2 additions & 0 deletions uniqueDocuments.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ export const uniqueDocuments = [
'walletAddressRegistrationPage',
'profilePage',
'createProjectPage',
'complianceInfo',
'tebuBanner',
];

0 comments on commit c357c85

Please sign in to comment.