psu-libraries/psulib_blacklight

View on GitHub
app/javascript/availability/components/view_more_button.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import PropTypes from 'prop-types';

const ViewMoreButton = ({ onClick }) => (
  <button className="btn btn-primary mb-3" type="button" onClick={onClick}>
    View More
  </button>
);

// eslint-react: defines valid prop types passed to this component
ViewMoreButton.propTypes = {
  onClick: PropTypes.func,
};

export default ViewMoreButton;