UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

15 lines (12 loc) 372 B
import { List } from 'immutable'; import * as actionTypes from '../constants/SearchPageConstants'; const updateCurrentPage = function updateCurrentPage({ listings = new List() } = {}) { return { type: actionTypes.CURRENT_PAGE_UPDATE, payload: { currentPage: listings.map((l) => l.get(':id')), listings, }, }; }; export { updateCurrentPage };