docbrown/app/javascript/listings/components/ClearQueryButton.jsx
Michael Kohl 7f75f99560
[deploy] Rename classified listings (#7910)
* Change models and related files

* Update controllers and specs

* More renaming

* Seek and destroy, I mean search and replace

* Round up the stragglers

* Ground control to Major Travis...

* More fixes

* PR feedback

* Various fixes

* Rename view

* Fix list query builder

* Unify request specs

* Fix some API spec errors

* Fix remaining API specs

* Make spec conform to API

* Fix leftover problems

* Fix JS tests

* Fix column name in select

* Fix API specs

* Fix search specs

* Paging Mr. Travis
2020-05-27 13:35:09 +00:00

19 lines
357 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
type="button"
className="listing-search-clear"
onClick={onClick}
id="clear-query-button"
>
×
</button>
);
ClearQueryButton.propTypes = {
onClick: PropTypes.func.isRequired,
};
export default ClearQueryButton;