docbrown/app/javascript/listings/components/NextPageButton.jsx
Katie Davis 76453b41fb
Updates ESLint rules to error on default imports (#12512)
* add rule

* add named imports

* more missed files

* so many files
2021-02-02 10:24:03 -05:00

15 lines
370 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
import { Button } from '@crayons';
export const NextPageButton = ({ onClick }) => (
<div className="flex justify-center">
<Button variant="secondary" onClick={onClick} type="button">
Load more...
</Button>
</div>
);
NextPageButton.propTypes = {
onClick: PropTypes.func.isRequired,
};