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:
serge
2022-09-16 10:07:51 +00:00
committed by GitHub
parent d525056190
commit 41c93a8a19
72 changed files with 8089 additions and 8612 deletions
+5 -7
View File
@@ -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;
}