docbrown/app/javascript/chat/article.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

18 lines
385 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
export const Article = ({ resource: article }) => (
<div className="activechatchannel__activeArticle">
<iframe
id="activecontent-iframe"
src={article.path}
title={article.title}
/>
</div>
);
Article.propTypes = {
resource: PropTypes.shape({
id: PropTypes.string,
}).isRequired,
};