mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 08:01:02 +00:00
Update frontend dependencies (#498)
* update npm packages * update tsconfig * remove babelrc, babel presets as well as stable package * fix svg namespace tag syntax errors * fix reference error due to namespace and class component having same name * replace tslint with eslint * make eslint happier * update .nvmrc to 14 * update node version to 14 in gh workflow * fix eslint warnings due to warnings treated as errors on CI (process.env.CI = true) * pretty fix * bump node version in Dockerfile * use createRoot instead of react-dom render * update browsers list in package.json
This commit is contained in:
@@ -17,18 +17,12 @@
|
||||
import * as React from 'react';
|
||||
import { Maybe } from '../../common';
|
||||
import { State as AppState } from '../../state';
|
||||
import { Row } from '../List';
|
||||
import { PersistentObject } from '../../persist';
|
||||
import { Ranking, Range } from '../../common/types';
|
||||
|
||||
import './Stats.css';
|
||||
|
||||
export namespace Stats {
|
||||
export type Display = 'list' | 'map' | 'Stats';
|
||||
|
||||
export interface Props {
|
||||
appState: Readonly<AppState>;
|
||||
}
|
||||
interface StatsProps {
|
||||
appState: Readonly<AppState>;
|
||||
}
|
||||
|
||||
function displayPercentage(percent: number): string {
|
||||
@@ -138,7 +132,7 @@ function formatScore(value: Range): string {
|
||||
return (min / 100).toFixed(1) + 'x';
|
||||
}
|
||||
|
||||
export class Stats extends React.Component<Stats.Props, {}> {
|
||||
export class Stats extends React.Component<StatsProps> {
|
||||
public render() {
|
||||
const { appState } = this.props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user