mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix defaultProps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
cdfc806032
commit
9658645fc2
@ -15,11 +15,13 @@ export interface KubeObjectListLayoutProps extends ItemListLayoutProps {
|
|||||||
dependentStores?: KubeObjectStore[];
|
dependentStores?: KubeObjectStore[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const defaultProps: Partial<KubeObjectListLayoutProps> = {
|
||||||
|
onDetails: (item: KubeObject) => showDetails(item.selfLink),
|
||||||
|
};
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class KubeObjectListLayout extends React.Component<KubeObjectListLayoutProps> {
|
export class KubeObjectListLayout extends React.Component<KubeObjectListLayoutProps> {
|
||||||
static defaultProps: Partial<KubeObjectListLayoutProps> = {
|
static defaultProps = defaultProps as object;
|
||||||
onDetails: (item: KubeObject) => showDetails(item.selfLink),
|
|
||||||
};
|
|
||||||
|
|
||||||
@computed get selectedItem() {
|
@computed get selectedItem() {
|
||||||
return this.props.store.getByPath(kubeSelectedUrlParam.get());
|
return this.props.store.getByPath(kubeSelectedUrlParam.get());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user