mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add section title
This commit is contained in:
parent
8dfd876392
commit
d349c1867f
1 changed files with 14 additions and 0 deletions
|
|
@ -635,6 +635,20 @@ export const functionResolvers = {
|
|||
},
|
||||
},
|
||||
HomeSection: {
|
||||
title: (section: { title?: string; layout: string }) => {
|
||||
if (section.title) return section.title
|
||||
|
||||
switch (section.layout) {
|
||||
case 'just added':
|
||||
return 'Just Added'
|
||||
case 'long':
|
||||
return 'Long Reads'
|
||||
case 'quick links':
|
||||
return 'Quick Links'
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
},
|
||||
async items(
|
||||
section: {
|
||||
items: Array<{
|
||||
|
|
|
|||
Loading…
Reference in a new issue