1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-17 16:45:49 +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

@@ -7,7 +7,7 @@ import { Heading, DistListItem, DistChips } from './styles';
import fileSizeSI from '../../utils/file-size';
class Dist extends Component<any, any> {
render() {
public render() {
return (
<DetailContextConsumer>
{(context: any) => {
@@ -17,7 +17,7 @@ class Dist extends Component<any, any> {
);
}
renderChips(dist: any, license: string) {
private renderChips(dist: any, license: string) {
const distDict = {
'file-count': dist.fileCount,
size: dist.unpackedSize && fileSizeSI(dist.unpackedSize),
@@ -43,7 +43,7 @@ class Dist extends Component<any, any> {
return chipsList;
}
renderDist = ({ packageMeta }: any) => {
private renderDist = ({ packageMeta }: any) => {
const { dist = {}, license } = packageMeta.latest;
return (