|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
import _ from 'lodash';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
@ -14,19 +13,16 @@ function createMapStateToProps() {
|
|
|
|
|
createDimensionsSelector(),
|
|
|
|
|
createUISettingsSelector(),
|
|
|
|
|
(calendar, dimensions, uiSettings) => {
|
|
|
|
|
const result = _.pick(calendar, [
|
|
|
|
|
'isFetching',
|
|
|
|
|
'view',
|
|
|
|
|
'time',
|
|
|
|
|
'start',
|
|
|
|
|
'end'
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
result.isSmallScreen = dimensions.isSmallScreen;
|
|
|
|
|
result.collapseViewButtons = dimensions.isLargeScreen;
|
|
|
|
|
result.longDateFormat = uiSettings.longDateFormat;
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
return {
|
|
|
|
|
isFetching: calendar.isFetching,
|
|
|
|
|
view: calendar.view,
|
|
|
|
|
time: calendar.time,
|
|
|
|
|
start: calendar.start,
|
|
|
|
|
end: calendar.end,
|
|
|
|
|
isSmallScreen: dimensions.isSmallScreen,
|
|
|
|
|
collapseViewButtons: dimensions.isLargeScreen,
|
|
|
|
|
longDateFormat: uiSettings.longDateFormat
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|