Skip to content

Commit

Permalink
COLUMBIA: linter fixes for src/culPlugins/ForbiddenComponent.js
Browse files Browse the repository at this point in the history
  • Loading branch information
barmintor committed Feb 3, 2025
1 parent e74f0a5 commit 3c39531
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/culPlugins/ForbiddenComponent.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import PropTypes from 'prop-types';

/** */
const ForbiddenComponent = (props) => {
const { id } = props;
return (
<div className="alert alert-warning w-100 d-flex">
<h3 className="my-auto mx-auto h6">
{`you do not currently have access to ${id}`}
</h3>
</div>
);
const ForbiddenComponent = ({ id = null }) => (
<div className="alert alert-warning w-100 d-flex">
<h3 className="my-auto mx-auto h6">
{`you do not currently have access to ${id}`}
</h3>
</div>
);

ForbiddenComponent.propTypes = {
id: PropTypes.string,
};

export default ForbiddenComponent;

0 comments on commit 3c39531

Please sign in to comment.