Skip to content

Commit

Permalink
feat: update resources page (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
flagrede authored Jun 13, 2023
1 parent 1b10816 commit 7329ecc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 85 deletions.
15 changes: 5 additions & 10 deletions schemas/documents/www/resourcesPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ export default {
validation: Rule => Rule.required(),
},
{
name: 'registrySection',
type: 'resourcesRegistrySection',
title: 'Registry Section',
validation: Rule => Rule.required(),
},
{
name: 'ledgerSection',
type: 'resourcesLedgerSection',
title: 'Ledger Section',
validation: Rule => Rule.required(),
title: 'Resources Sections',
name: 'resourcesSections',
type: 'array',
of: [{ type: 'resourcesSection' }],
validation: Rule => Rule.required().min(1),
},
],
};
42 changes: 0 additions & 42 deletions schemas/objects/sections/resourcesPage/resourcesRegistrySection.js

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
title: 'Resources Ledger Section',
name: 'resourcesLedgerSection',
title: 'Resources Section',
name: 'resourcesSection',
type: 'object',
fields: [
{
Expand Down
8 changes: 2 additions & 6 deletions schemas/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ import presskitLogosSection from './objects/sections/presskit/presskitLogosSecti
import presskitPhotosSection from './objects/sections/presskit/presskitPhotosSection';
import regenTeamMember from './objects/sections/regenTeamMember';
import resourcesPage from './documents/www/resourcesPage';
import resourcesRegistrySection from './objects/sections/resourcesPage/resourcesRegistrySection';
import resourcesRegistrySubSection from './objects/sections/resourcesPage/resourcesRegistrySubSection';
import resourcesLedgerSection from './objects/sections/resourcesPage/resourcesLedgerSection';
import resourcesSection from './objects/sections/resourcesPage/resourcesSection';
import sciencePage from './documents/www/sciencePage';
import scienceOpenScienceSection from './objects/sections/sciencePage/scienceOpenScienceSection';
import imageCustomBody from './objects/templates/imageCustomBody';
Expand Down Expand Up @@ -327,10 +325,8 @@ export default [
requestType,
resource,
resourcesCard,
resourcesLedgerSection,
resourcesSection,
resourcesPage,
resourcesRegistrySection,
resourcesRegistrySubSection,
reviewSection,
scienceCommunityMember,
scienceCommunitySection,
Expand Down

0 comments on commit 7329ecc

Please sign in to comment.