mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
cleanup Lens repo with tighter linting
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
This commit is contained in:
1 parent
e468105143
commit
b1ff34879a
470 files changed
+8447
-7443
No files matched your search
@@ -13,8 +13,8 @@ export interface AddRemoveButtonsProps extends React.HTMLAttributes<any> {
|
||||
}
|
||||
|
||||
export class AddRemoveButtons extends React.PureComponent<AddRemoveButtonsProps> {
|
||||
renderButtons() {
|
||||
const { onRemove, onAdd, addTooltip, removeTooltip } = this.props
|
||||
renderButtons(): JSX.Element[] {
|
||||
const { onRemove, onAdd, addTooltip, removeTooltip } = this.props;
|
||||
const buttons = [
|
||||
{
|
||||
onClick: onRemove,
|
||||
@@ -33,20 +33,20 @@ export class AddRemoveButtons extends React.PureComponent<AddRemoveButtonsProps>
|
||||
if (!button.onClick) {
|
||||
return null;
|
||||
}
|
||||
const { onClick, className, icon, tooltip } = button
|
||||
const { onClick, className, icon, tooltip } = button;
|
||||
return (
|
||||
<Button key={icon} big round primary onClick={onClick} className={className} tooltip={tooltip}>
|
||||
<Icon material={icon}/>
|
||||
</Button>
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
render() {
|
||||
render(): JSX.Element {
|
||||
return (
|
||||
<div className={cssNames("AddRemoveButtons flex gaps", this.props.className)}>
|
||||
{this.renderButtons()}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
export * from "./add-remove-buttons"
|
||||
export * from "./add-remove-buttons";
|
||||
Reference in new issue
Block a user