mirror of
https://github.com/SomboChea/ui
synced 2026-01-18 17:16:00 +07:00
fix: @typescript-eslint/explicit-function-return-type
This commit is contained in:
@@ -7,7 +7,7 @@ import { Heading, DistListItem, DistChips } from './styles';
|
||||
import fileSizeSI from '../../utils/file-size';
|
||||
|
||||
class Dist extends Component<any, any> {
|
||||
public render() {
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<DetailContextConsumer>
|
||||
{(context: any) => {
|
||||
@@ -17,7 +17,7 @@ class Dist extends Component<any, any> {
|
||||
);
|
||||
}
|
||||
|
||||
private renderChips(dist: any, license: string) {
|
||||
private renderChips(dist: any, license: string): JSX.Element | never[] {
|
||||
const distDict = {
|
||||
'file-count': dist.fileCount,
|
||||
size: dist.unpackedSize && fileSizeSI(dist.unpackedSize),
|
||||
|
||||
Reference in New Issue
Block a user