mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename component property to
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
This commit is contained in:
parent
6ee416b381
commit
2b3d2ed061
@ -44,7 +44,7 @@ export interface ItemListLayoutProps<T extends ItemObject = ItemObject> {
|
||||
preloadStores?: boolean;
|
||||
isClusterScoped?: boolean;
|
||||
hideFilters?: boolean;
|
||||
resizable?: boolean;
|
||||
isResizable?: boolean;
|
||||
searchFilters?: SearchFilter<T>[];
|
||||
/** @deprecated */
|
||||
filterItems?: ItemsFilter<T>[];
|
||||
@ -232,7 +232,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps, ItemLis
|
||||
getRow(uid: string) {
|
||||
const {
|
||||
isSelectable, renderTableHeader, renderTableContents, renderItemMenu,
|
||||
store, hasDetailsView, onDetails, resizable,
|
||||
store, hasDetailsView, onDetails, isResizable: resizable,
|
||||
copyClassNameFromHeadCells, customizeTableRowProps, detailsItem,
|
||||
} = this.props;
|
||||
const { isSelected } = store;
|
||||
@ -277,7 +277,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps, ItemLis
|
||||
}
|
||||
|
||||
if (!headCell || !this.isHiddenColumn(headCell)) {
|
||||
return <TableCell resizable={resizable} key={index} {...cellProps} />;
|
||||
return <TableCell isResizable={resizable} key={index} {...cellProps} />;
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -410,7 +410,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps, ItemLis
|
||||
}
|
||||
|
||||
renderTableHeader() {
|
||||
const { customizeTableRowProps, renderTableHeader, isSelectable, isConfigurable, store, resizable } = this.props;
|
||||
const { customizeTableRowProps, renderTableHeader, isSelectable, isConfigurable, store, isResizable: resizable } = this.props;
|
||||
|
||||
if (!renderTableHeader) {
|
||||
return;
|
||||
|
||||
@ -46,7 +46,7 @@ export class KubeObjectListLayout extends React.Component<KubeObjectListLayoutPr
|
||||
|
||||
return (
|
||||
<ItemListLayout
|
||||
resizable
|
||||
isResizable
|
||||
{...layoutProps}
|
||||
className={cssNames("KubeObjectListLayout", className)}
|
||||
store={store}
|
||||
|
||||
@ -13,7 +13,7 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
||||
id?: string; // used for configuration visibility of columns
|
||||
className?: string;
|
||||
title?: ReactNode;
|
||||
resizable?: boolean; // allow resizing
|
||||
isResizable?: boolean; // allow resizing
|
||||
size?: number; // set horizontal size
|
||||
checkbox?: boolean; // render cell with a checkbox
|
||||
isChecked?: boolean; // mark checkbox as checked or not
|
||||
@ -120,7 +120,7 @@ export class TableCell extends React.Component<TableCellProps, ResizeHandlerStat
|
||||
}
|
||||
|
||||
render() {
|
||||
const { className, checkbox, isChecked, resizable, size, sortBy, _sort, _sorting, _nowrap, children, title, renderBoolean: displayBoolean, showWithColumn, _onResize, ...cellProps } = this.props;
|
||||
const { className, checkbox, isChecked, isResizable: resizable, size, sortBy, _sort, _sorting, _nowrap, children, title, renderBoolean: displayBoolean, showWithColumn, _onResize, ...cellProps } = this.props;
|
||||
const classNames = cssNames("TableCell", className, {
|
||||
checkbox,
|
||||
nowrap: _nowrap,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user