diff --git a/components/common/FilterButtons.js b/components/common/FilterButtons.js index 5b898bf4..ea811216 100644 --- a/components/common/FilterButtons.js +++ b/components/common/FilterButtons.js @@ -1,11 +1,25 @@ import React from 'react'; +import PropTypes from 'prop-types'; import ButtonLayout from 'components/layout/ButtonLayout'; import ButtonGroup from './ButtonGroup'; -export default function FilterButtons({ buttons, selected, onClick }) { +function FilterButtons({ buttons, selected, onClick }) { return ( ); } + +FilterButtons.propTypes = { + buttons: PropTypes.arrayOf( + PropTypes.shape({ + label: PropTypes.node, + value: PropTypes.any.isRequired, + }), + ), + selected: PropTypes.any, + onClick: PropTypes.func, +}; + +export default FilterButtons;