mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777)
This commit is contained in:
1 parent
489cef9595
commit
5ed4537979
287 files changed
+704
-628
No files matched your search
@@ -42,9 +42,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<any>, TooltipDecorator
|
||||
|
||||
@withTooltip
|
||||
export class Button extends React.PureComponent<ButtonProps, {}> {
|
||||
private link: HTMLAnchorElement;
|
||||
private button: HTMLButtonElement;
|
||||
|
||||
render() {
|
||||
const {
|
||||
waiting, label, primary, accent, plain, hidden, active, big,
|
||||
@@ -60,7 +57,7 @@ export class Button extends React.PureComponent<ButtonProps, {}> {
|
||||
// render as link
|
||||
if (this.props.href) {
|
||||
return (
|
||||
<a {...btnProps} ref={e => this.link = e}>
|
||||
<a {...btnProps}>
|
||||
{label}
|
||||
{children}
|
||||
</a>
|
||||
@@ -69,7 +66,7 @@ export class Button extends React.PureComponent<ButtonProps, {}> {
|
||||
|
||||
// render as button
|
||||
return (
|
||||
<button type="button" {...btnProps} ref={e => this.button = e}>
|
||||
<button type="button" {...btnProps}>
|
||||
{label}
|
||||
{children}
|
||||
</button>
|
||||
|
||||
Reference in new issue
Block a user