docbrown/app/javascript/listings/dashboard/rowElements/location.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

10 lines
252 B
JavaScript

import PropTypes from 'prop-types';
import { h } from 'preact';
export const Location = ({ location }) => {
return <span className="dashboard-listing-date">{location}</span>;
};
Location.propTypes = {
location: PropTypes.string.isRequired,
};