mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 04:51:01 +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:
@@ -15,12 +15,12 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
import * as React from 'react';
|
||||
import { Column } from './';
|
||||
import { ColumnProps } from './';
|
||||
import { Node } from '../../../state';
|
||||
import { secondsWithPrecision } from '../../../utils';
|
||||
import icon from '../../../icons/history.svg';
|
||||
|
||||
export class BlockTimeColumn extends React.Component<Column.Props, {}> {
|
||||
export class BlockTimeColumn extends React.Component<ColumnProps> {
|
||||
public static readonly label = 'Block Time';
|
||||
public static readonly icon = icon;
|
||||
public static readonly width = 80;
|
||||
@@ -30,7 +30,7 @@ export class BlockTimeColumn extends React.Component<Column.Props, {}> {
|
||||
|
||||
private data = 0;
|
||||
|
||||
public shouldComponentUpdate(nextProps: Column.Props) {
|
||||
public shouldComponentUpdate(nextProps: ColumnProps) {
|
||||
return this.data !== nextProps.node.blockTime;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user