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;
|
preloadStores?: boolean;
|
||||||
isClusterScoped?: boolean;
|
isClusterScoped?: boolean;
|
||||||
hideFilters?: boolean;
|
hideFilters?: boolean;
|
||||||
resizable?: boolean;
|
isResizable?: boolean;
|
||||||
searchFilters?: SearchFilter<T>[];
|
searchFilters?: SearchFilter<T>[];
|
||||||
/** @deprecated */
|
/** @deprecated */
|
||||||
filterItems?: ItemsFilter<T>[];
|
filterItems?: ItemsFilter<T>[];
|
||||||
@ -232,7 +232,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps, ItemLis
|
|||||||
getRow(uid: string) {
|
getRow(uid: string) {
|
||||||
const {
|
const {
|
||||||
isSelectable, renderTableHeader, renderTableContents, renderItemMenu,
|
isSelectable, renderTableHeader, renderTableContents, renderItemMenu,
|
||||||
store, hasDetailsView, onDetails, resizable,
|
store, hasDetailsView, onDetails, isResizable: resizable,
|
||||||
copyClassNameFromHeadCells, customizeTableRowProps, detailsItem,
|
copyClassNameFromHeadCells, customizeTableRowProps, detailsItem,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { isSelected } = store;
|
const { isSelected } = store;
|
||||||
@ -277,7 +277,7 @@ export class ItemListLayout extends React.Component<ItemListLayoutProps, ItemLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!headCell || !this.isHiddenColumn(headCell)) {
|
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() {
|
renderTableHeader() {
|
||||||
const { customizeTableRowProps, renderTableHeader, isSelectable, isConfigurable, store, resizable } = this.props;
|
const { customizeTableRowProps, renderTableHeader, isSelectable, isConfigurable, store, isResizable: resizable } = this.props;
|
||||||
|
|
||||||
if (!renderTableHeader) {
|
if (!renderTableHeader) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export class KubeObjectListLayout extends React.Component<KubeObjectListLayoutPr
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ItemListLayout
|
<ItemListLayout
|
||||||
resizable
|
isResizable
|
||||||
{...layoutProps}
|
{...layoutProps}
|
||||||
className={cssNames("KubeObjectListLayout", className)}
|
className={cssNames("KubeObjectListLayout", className)}
|
||||||
store={store}
|
store={store}
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export interface TableCellProps extends React.DOMAttributes<HTMLDivElement> {
|
|||||||
id?: string; // used for configuration visibility of columns
|
id?: string; // used for configuration visibility of columns
|
||||||
className?: string;
|
className?: string;
|
||||||
title?: ReactNode;
|
title?: ReactNode;
|
||||||
resizable?: boolean; // allow resizing
|
isResizable?: boolean; // allow resizing
|
||||||
size?: number; // set horizontal size
|
size?: number; // set horizontal size
|
||||||
checkbox?: boolean; // render cell with a checkbox
|
checkbox?: boolean; // render cell with a checkbox
|
||||||
isChecked?: boolean; // mark checkbox as checked or not
|
isChecked?: boolean; // mark checkbox as checked or not
|
||||||
@ -120,7 +120,7 @@ export class TableCell extends React.Component<TableCellProps, ResizeHandlerStat
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
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, {
|
const classNames = cssNames("TableCell", className, {
|
||||||
checkbox,
|
checkbox,
|
||||||
nowrap: _nowrap,
|
nowrap: _nowrap,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user