mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-07-22 11:25:46 +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:
@@ -16,12 +16,12 @@
|
||||
|
||||
import * as React from 'react';
|
||||
import { Maybe } from '../../../common';
|
||||
import { Column } from './';
|
||||
import { ColumnProps } from './';
|
||||
import { Node } from '../../../state';
|
||||
import { Tooltip, PolkadotIcon } from '../../';
|
||||
import { Tooltip, PolkadotIcon, TooltipCopyCallback } from '../../';
|
||||
import icon from '../../../icons/shield.svg';
|
||||
|
||||
export class ValidatorColumn extends React.Component<Column.Props, {}> {
|
||||
export class ValidatorColumn extends React.Component<ColumnProps> {
|
||||
public static readonly label = 'Validator';
|
||||
public static readonly icon = icon;
|
||||
public static readonly width = 16;
|
||||
@@ -29,9 +29,9 @@ export class ValidatorColumn extends React.Component<Column.Props, {}> {
|
||||
public static readonly sortBy = ({ validator }: Node) => validator || '';
|
||||
|
||||
private data: Maybe<string>;
|
||||
private copy: Maybe<Tooltip.CopyCallback>;
|
||||
private copy: Maybe<TooltipCopyCallback>;
|
||||
|
||||
public shouldComponentUpdate(nextProps: Column.Props) {
|
||||
public shouldComponentUpdate(nextProps: ColumnProps) {
|
||||
return this.data !== nextProps.node.validator;
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export class ValidatorColumn extends React.Component<Column.Props, {}> {
|
||||
);
|
||||
}
|
||||
|
||||
private onCopy = (copy: Tooltip.CopyCallback) => {
|
||||
private onCopy = (copy: TooltipCopyCallback) => {
|
||||
this.copy = copy;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user