mirror of
https://github.com/romancm/gamebrary
synced 2024-11-13 23:17:08 +00:00
use getter for latestRelease
This commit is contained in:
parent
7c3890ebd2
commit
287779fe2e
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ import presetHTML5 from '@bbob/preset-html5'
|
|||
import orderby from 'lodash.orderby';
|
||||
|
||||
export default {
|
||||
latestRelease: ({ releases }) => releases?.[0]?.tag_name || 'v1',
|
||||
darkTheme: ({ settings }) => settings?.darkTheme || false,
|
||||
sortedBoards: ({ boards }) => orderby(boards, 'lastUpdated', 'desc'),
|
||||
|
||||
|
|
Loading…
Reference in a new issue