code elements as list components #1193

This commit is contained in:
daria 2024-08-05 11:53:59 +03:00
parent ca8e58b34a
commit 57b0fe8fa1
1 changed files with 3 additions and 3 deletions

View File

@ -477,7 +477,7 @@ define([
created++;
}
if (team.empty) {
var createTeamDiv = h('div.cp-team-list-team.empty'+createCls,{
var createTeamDiv = h('li.cp-team-list-team.empty'+createCls,{
tabindex: '0'
}, [
h('span.cp-team-list-name.empty', Messages.team_listSlot),
@ -494,7 +494,7 @@ define([
return;
}
var avatar = h('span.cp-avatar');
var teamDiv = h('div.cp-team-list-team',{
var teamDiv = h('li.cp-team-list-team',{
tabindex: '0'
}, [
h('span.cp-team-list-avatar', avatar),
@ -514,7 +514,7 @@ define([
}
});
});
content.push(h('div.cp-team-list-container', list));
content.push(h('ul.cp-team-list-container', list));
cb(content);
});
return content;