diff --git a/CalendarPicker/index.js b/CalendarPicker/index.js index 6c60fac..b56cd79 100644 --- a/CalendarPicker/index.js +++ b/CalendarPicker/index.js @@ -137,7 +137,8 @@ export default class CalendarPicker extends Component { todayBackgroundColor, width, height, - dayShape + dayShape, + nextPrevComponentContainer } = props; // The styles in makeStyles are intially scaled to this width @@ -151,7 +152,8 @@ export default class CalendarPicker extends Component { selectedDayColor, selectedDayTextColor, todayBackgroundColor, - dayShape + dayShape, + nextPrevComponentContainer }) }; } diff --git a/CalendarPicker/makeStyles.js b/CalendarPicker/makeStyles.js index 50b6bce..8d5f593 100644 --- a/CalendarPicker/makeStyles.js +++ b/CalendarPicker/makeStyles.js @@ -24,7 +24,8 @@ export function makeStyles(params) { selectedDayColor, selectedDayTextColor, todayBackgroundColor, - dayShape + dayShape, + nextPrevComponentContainer } = params; const scaler = Math.min(containerWidth, containerHeight) / scaleFactor; const SELECTED_BG_COLOR = selectedDayColor ? selectedDayColor : DEFAULT_SELECTED_BACKGROUND_COLOR; @@ -160,11 +161,13 @@ export function makeStyles(params) { previousContainer: { marginLeft: 10*scaler, + ...nextPrevComponentContainer }, nextContainer: { marginRight: 10*scaler, alignItems: 'flex-end', + ...nextPrevComponentContainer }, navButtonText: {