mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 20:51:00 +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,7 +15,7 @@
|
||||
// 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 { Tooltip, Icon } from '../../';
|
||||
import icon from '../../../icons/terminal.svg';
|
||||
@@ -69,7 +69,7 @@ const ICONS = {
|
||||
};
|
||||
const SEMVER_PATTERN = /^\d+\.\d+\.\d+/;
|
||||
|
||||
export class ImplementationColumn extends React.Component<Column.Props, {}> {
|
||||
export class ImplementationColumn extends React.Component<ColumnProps> {
|
||||
public static readonly label = 'Implementation';
|
||||
public static readonly icon = icon;
|
||||
public static readonly width = 90;
|
||||
@@ -80,7 +80,7 @@ export class ImplementationColumn extends React.Component<Column.Props, {}> {
|
||||
private implementation: string;
|
||||
private version: string;
|
||||
|
||||
public shouldComponentUpdate(nextProps: Column.Props) {
|
||||
public shouldComponentUpdate(nextProps: ColumnProps) {
|
||||
if (this.props.node === nextProps.node) {
|
||||
// Implementation can't change unless we got a new node
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user