mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-14 02:31: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:
@@ -16,15 +16,13 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
export namespace Truncate {
|
||||
export interface Props {
|
||||
text: string;
|
||||
chars?: number;
|
||||
}
|
||||
interface TruncateProps {
|
||||
text: string;
|
||||
chars?: number;
|
||||
}
|
||||
|
||||
export class Truncate extends React.Component<Truncate.Props, {}> {
|
||||
public shouldComponentUpdate(nextProps: Truncate.Props): boolean {
|
||||
export class Truncate extends React.Component<TruncateProps> {
|
||||
public shouldComponentUpdate(nextProps: TruncateProps): boolean {
|
||||
return this.props.text !== nextProps.text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user