/** * * LimitSelect * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { map } from 'lodash'; import styles from './styles.scss'; class LimitSelect extends React.Component { componentWillMount() { const id = _.uniqueId(); this.setState({ id }); } /** * Return the list of default values to populate the select options * * @returns {number[]} */ getOptionsValues() { return [10, 20, 50, 100]; } render() { return (
); } } LimitSelect.propTypes = { handleChange: PropTypes.func.isRequired, limit: PropTypes.number.isRequired, }; export default LimitSelect;