Require explicit public modifier

This commit is contained in:
hensm
2019-03-07 02:14:44 +00:00
parent 04a5284fdc
commit 0fef3fd98c
7 changed files with 29 additions and 29 deletions

View File

@@ -138,7 +138,7 @@ export default class Bridge extends Component<BridgeProps, BridgeState> {
this.onPackageTypeChange = this.onPackageTypeChange.bind(this);
}
render () {
public render () {
return (
<div className="bridge">
{ this.props.loading

View File

@@ -46,7 +46,7 @@ export default class EditableList extends Component<
this.handleNewItemEdit = this.handleNewItemEdit.bind(this);
}
render () {
public render () {
const items = Array.from(this.state.items.values());
return (

View File

@@ -40,7 +40,7 @@ export default class EditableListItem extends Component<
this.handleInputKeyPress = this.handleInputKeyPress.bind(this);
}
render () {
public render () {
const selected = this.state.editing
? "editable-list__item--selected" : "";

View File

@@ -77,7 +77,7 @@ class OptionsApp extends Component<{}, OptionsAppState> {
= this.getWhitelistItemPatternError.bind(this);
}
async componentDidMount () {
public async componentDidMount () {
const { options } = await browser.storage.sync.get("options");
this.setState({
@@ -95,7 +95,7 @@ class OptionsApp extends Component<{}, OptionsAppState> {
});
}
render () {
public render () {
if (!this.state.hasLoaded) {
return;
}