All files / components/DateSelect DateSelect.reducers.js

100% Statements 6/6
100% Branches 0/0
100% Functions 3/3
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15135x         135x         135x        
export const onSwipe = (state, slidesSwiped) => ({
	...state,
	offset: state.offset + slidesSwiped,
});
 
export const onPrev = state => ({
	...state,
	offset: state.offset - 1,
});
 
export const onNext = state => ({
	...state,
	offset: state.offset + 1,
});