fix(event): address code comments, add banner gradient

This commit is contained in:
Sabe Jones
2020-12-11 15:59:41 -06:00
parent 5c8817c4ef
commit 119502f285
14 changed files with 501 additions and 472 deletions

View File

@@ -1,5 +1,11 @@
import moment from 'moment';
import find from 'lodash/find';
import t from './translation';
import { EVENTS } from './constants';
const CURRENT_EVENT = find(EVENTS, event => {
moment().isBetween(event.start, event.end);
});
/*
---------------------------------------------------------------
@@ -81,7 +87,7 @@ const bundles = {
'penguin',
],
canBuy () {
return moment().isBetween('2020-12-17T08:00-04:00', '2021-01-31T20:00-04:00');
return CURRENT_EVENT.season === 'winter';
},
type: 'quests',
value: 7,