Skip to content

Commit

Permalink
a few more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
codingmusician committed Sep 13, 2024
1 parent f13721c commit 3fea362
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/elements/block-icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import React from 'react';
import { TEC } from '@moderntribe/common/icons';
import './style.pcss';

export default () => (
const BlockIcon = () => (
<div className="tribe-editor__icons__container tribe-editor__icons--tec">
<TEC />
</div>
);

export default BlockIcon;
1 change: 1 addition & 0 deletions src/modules/elements/heading/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Heading = ( { level, children, className } ) => {
Heading.propTypes = {
children: PropTypes.node.isRequired,
level: PropTypes.oneOf( [ 1, 2, 3, 4, 5, 6 ] ).isRequired,
className: PropTypes.string,
};

export default Heading;
1 change: 1 addition & 0 deletions src/modules/elements/image-upload/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { wpEditor } from '@moderntribe/common/utils/globals';
import './style.pcss';
const { MediaUpload } = wpEditor;

// eslint-disable-next-line react/display-name, react/prop-types
export const renderImageUploadButton = ( disabled, label ) => ( { open } ) => (
<Button
onClick={ open }
Expand Down
2 changes: 2 additions & 0 deletions src/resources/js/utils/tec-copy-to-clipboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* global tribeCopyToClipboard */

tribe.copyToClipboard = tribe.copyToClipboard || {};

( function ( $, obj ) {
Expand Down

0 comments on commit 3fea362

Please sign in to comment.