-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add credit category and update credit type (#58)
* feat: add credit category doc type and update credit type * feat: use customPortableText for unitDefinition * fix: update credit type to category in ecologicalCreditCard displayed on website homepage * fix: category naming * fix: rename creditCategory
- Loading branch information
Showing
5 changed files
with
55 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default { | ||
title: 'Credit Category', | ||
name: 'creditCategory', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'Name', | ||
name: 'name', | ||
type: 'string', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Icon', | ||
name: 'icon', | ||
type: 'image', | ||
description: 'This icon will appear on the credit class cards with credit type belonging to this category', | ||
validation: Rule => Rule.required(), | ||
}, | ||
{ | ||
title: 'Large Image', | ||
name: 'largeImage', | ||
type: 'image', | ||
description: `This image will appear on the credit class pages with credit type belonging to this category, unless there's already one specified for the credit type`, | ||
validation: Rule => Rule.required(), | ||
}, | ||
], | ||
}; |
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
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