[UI Work] Add Overview Artist Index View

This commit is contained in:
Qstick
2017-10-15 02:17:53 -04:00
parent f6fc78d927
commit 566ac1a9d3
41 changed files with 1337 additions and 138 deletions
@@ -176,6 +176,10 @@ const calendarActionHandlers = {
[types.SET_CALENDAR_DAYS_COUNT]: function(payload) {
return function(dispatch, getState) {
if (payload.dayCount === getState().calendar.dayCount) {
return;
}
dispatch(set({
section,
dayCount: payload.dayCount
@@ -184,10 +188,7 @@ const calendarActionHandlers = {
const state = getState();
const { time, view } = state.calendar;
dispatch(fetchCalendar({
time,
view
}));
dispatch(fetchCalendar({ time, view }));
};
},
@@ -201,10 +202,7 @@ const calendarActionHandlers = {
const state = getState();
const { time, view } = state.calendar;
dispatch(fetchCalendar({
time,
view
}));
dispatch(fetchCalendar({ time, view }));
};
},
@@ -212,7 +210,9 @@ const calendarActionHandlers = {
return function(dispatch, getState) {
const state = getState();
const view = payload.view;
const time = view === calendarViews.FORECAST ? moment() : state.calendar.time;
const time = view === calendarViews.FORECAST ?
moment() :
state.calendar.time;
dispatch(fetchCalendar({ time, view }));
};