use map rather than mapView where it makes sense
This commit is contained in:
@@ -33,12 +33,10 @@ class AllClientsView extends TemplateView {
|
||||
render(t, vm) {
|
||||
return t.div({className: "ClientListView"}, [
|
||||
t.h2("Choose an app to continue"),
|
||||
t.mapView(vm => vm.clientList, () => {
|
||||
return new TemplateView(vm, t => {
|
||||
return t.div({className: "list"}, vm.clientList.map(clientViewModel => {
|
||||
return t.view(new ClientView(clientViewModel));
|
||||
}));
|
||||
});
|
||||
t.map(vm => vm.clientList, (clientList, t) => {
|
||||
return t.div({className: "list"}, clientList.map(clientViewModel => {
|
||||
return t.view(new ClientView(clientViewModel));
|
||||
}));
|
||||
}),
|
||||
t.div(t.label([
|
||||
t.input({
|
||||
|
||||
Reference in New Issue
Block a user