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