List layout column injection token package (#7544)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Sami TiilikainenandJari Kolehmainen authored and GitHub committed 2023-04-20 09:01:50 -04:00
1 parent 4bb37df1cd
commit 5eb41e8a6c
35 files changed
+3589 -196

No files matched your search

+1 -4
View File
@@ -3,14 +3,11 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { ItemObject } from "@k8slens/list-layout";
import autoBind from "auto-bind";
import orderBy from "lodash/orderBy";
import { action, computed, observable, when, makeObservable } from "mobx";
export interface ItemObject {
getId(): string;
getName(): string;
}
export abstract class ItemStore<Item extends ItemObject> {
protected defaultSorting = (item: Item) => item.getName();