docbrown/app/javascript/listings/components/ClearQueryButton.jsx
Nick Taylor 653ec12300
Upgrade to Preact 10.4.4 (#8739)
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2020-06-18 10:07:17 -04:00

20 lines
394 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { h } from 'preact';
import PropTypes from 'prop-types';
const ClearQueryButton = ({ onClick }) => (
<button
data-testid="clear-query-button"
type="button"
className="listing-search-clear"
onClick={onClick}
id="clear-query-button"
>
×
</button>
);
ClearQueryButton.propTypes = {
onClick: PropTypes.func.isRequired,
};
export default ClearQueryButton;