Skip to content

Commit

Permalink
Remove unused findDOMNode import and disable jsx-a11y rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Jul 18, 2017
1 parent 4cbe87e commit 63cd684
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions editor/sidebar/post-visibility/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { withInstanceId } from 'components';
* WordPress dependencies
*/
import { __ } from 'i18n';
import { Component, findDOMNode } from 'element';
import { Component } from 'element';
import { ESCAPE } from 'utils/keycodes';

/**
Expand Down Expand Up @@ -119,8 +119,7 @@ class PostVisibility extends Component {
];
const getVisibilityLabel = () => find( visibilityOptions, { value: visibility } ).label;

// Disable Reason: The input is inside the label, we shouldn't need the htmlFor
/* eslint-disable jsx-a11y/label-has-for */
/* eslint-disable jsx-a11y/no-static-element-interactions */
return (
<div className="editor-post-visibility">
<span>{ __( 'Visibility' ) }</span>
Expand Down Expand Up @@ -189,7 +188,7 @@ class PostVisibility extends Component {
}
</div>
);
/* eslint-enable jsx-a11y/label-has-for */
/* eslint-enable jsx-a11y/no-static-element-interactions */
}
}

Expand Down

0 comments on commit 63cd684

Please sign in to comment.