fix: @typescript-eslint/explicit-member-accessibility

This commit is contained in:
Griffithtp
2019-06-24 22:03:21 +01:00
parent e33570b3f0
commit 55f50e9f4d
4 changed files with 21 additions and 20 deletions

View File

@@ -2,10 +2,10 @@ import React from 'react';
export function asyncComponent(getComponent) {
return class AsyncComponent extends React.Component {
static Component = null;
state = { Component: AsyncComponent.Component };
public static Component = null;
public state = { Component: AsyncComponent.Component };
componentDidMount() {
public componentDidMount() {
const { Component } = this.state;
if (!Component) {
getComponent()
@@ -19,7 +19,8 @@ export function asyncComponent(getComponent) {
});
}
}
render() {
public render() {
const { Component } = this.state;
if (Component) {
// eslint-disable-next-line verdaccio/jsx-spread