Remove TemplateView

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-15 21:40:34 +05:30
parent 9a3d7e416a
commit 0ac3d3727b

View file

@ -1,13 +1,12 @@
import {TemplateView} from "../../general/TemplateView.js";
import {LazyListView} from "../../general/LazyListView.js"; import {LazyListView} from "../../general/LazyListView.js";
import {MemberTileView} from "./MemberTileView.js"; import {MemberTileView} from "./MemberTileView.js";
export class MemberListView extends TemplateView { export class MemberListView extends LazyListView{
render(t, vm) { constructor(vm) {
return t.view(new LazyListView({ super({
list: vm.memberTileViewModels, list: vm.memberTileViewModels,
className: "MemberListView", className: "MemberListView",
itemHeight: 40 itemHeight: 40
}, tileViewModel => new MemberTileView(tileViewModel))); }, tileViewModel => new MemberTileView(tileViewModel));
} }
} }