diff --git a/src/common/components/utils/BsPagination.js b/src/common/components/utils/BsPagination.js index 9c20470..bcee990 100644 --- a/src/common/components/utils/BsPagination.js +++ b/src/common/components/utils/BsPagination.js @@ -1,13 +1,17 @@ import React, { PropTypes } from 'react'; -import { Link } from 'react-router'; +import { connect } from 'react-redux'; import cx from 'classnames'; +import { setCrrentPage } from '../../actions/pageActions'; import Text from '../widgets/Text'; let style = { + cursor: 'pointer', margin: 2, }; -let Pagination = ({ base, page, simple, ...rest }) => { +let Pagination = ({ simple, resourceName, pages, dispatch, ...rest }) => { + let page = pages[resourceName] || pages.default; + return (