1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-19 17:46:12 +07:00

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

@@ -22,15 +22,15 @@ function TabContainer({ children }) {
}
class RegistryInfoContent extends Component<Props, State> {
state = {
public state = {
tabPosition: 0,
};
render() {
public render() {
return <div>{this.renderTabs()}</div>;
}
renderTabs() {
private renderTabs() {
const { scope, registryUrl } = this.props;
const { tabPosition } = this.state;
@@ -48,7 +48,7 @@ class RegistryInfoContent extends Component<Props, State> {
);
}
renderNpmTab(scope: string, registryUrl: string) {
private renderNpmTab(scope: string, registryUrl: string) {
return (
<React.Fragment>
<CopyToClipBoard text={getCLISetConfigRegistry(`${NODE_MANAGER.npm} set`, scope, registryUrl)} />
@@ -58,7 +58,7 @@ class RegistryInfoContent extends Component<Props, State> {
);
}
renderPNpmTab(scope: string, registryUrl: string) {
private renderPNpmTab(scope: string, registryUrl: string) {
return (
<React.Fragment>
<CopyToClipBoard text={getCLISetConfigRegistry(`${NODE_MANAGER.pnpm} set`, scope, registryUrl)} />
@@ -68,7 +68,7 @@ class RegistryInfoContent extends Component<Props, State> {
);
}
renderYarnTab(scope: string, registryUrl: string) {
private renderYarnTab(scope: string, registryUrl: string) {
return (
<React.Fragment>
<CopyToClipBoard text={getCLISetConfigRegistry(`${NODE_MANAGER.yarn} config set`, scope, registryUrl)} />
@@ -76,7 +76,7 @@ class RegistryInfoContent extends Component<Props, State> {
);
}
handleChange = (event: any, tabPosition: number) => {
private handleChange = (event: any, tabPosition: number) => {
event.preventDefault();
this.setState({ tabPosition });
};