Fix <Icon>'s not using tooltip and fix toolbar not being boolean (#3038)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-06-23 09:14:59 -04:00
1 parent f8dd7b12f2
commit e49576ee8c
17 files changed
+64 -52

No files matched your search

@@ -83,7 +83,9 @@ export class KubeObjectMenu<T extends KubeObject> extends React.Component<KubeOb
);
}
getMenuItems(object: T): React.ReactChild[] {
getMenuItems(): React.ReactChild[] {
const { object, toolbar } = this.props;
if (!object) {
return [];
}
@@ -102,7 +104,7 @@ export class KubeObjectMenu<T extends KubeObject> extends React.Component<KubeOb
render() {
const { remove, update, renderRemoveMessage, isEditable, isRemovable } = this;
const { className, object, editable, removable, ...menuProps } = this.props;
const { className, editable, removable, ...menuProps } = this.props;
return (
<MenuActions
@@ -112,7 +114,7 @@ export class KubeObjectMenu<T extends KubeObject> extends React.Component<KubeOb
removeConfirmationMessage={renderRemoveMessage}
{...menuProps}
>
{this.getMenuItems(object)}
{this.getMenuItems()}
</MenuActions>
);
}