sort icons by how much they are used, #3784

This commit is contained in:
zadam
2023-03-29 22:40:50 +02:00
parent 2d7b5e4aa2
commit d354c91d7c
4 changed files with 79 additions and 20 deletions

View File

@@ -11175,6 +11175,22 @@ const icons = [
}
];
function getIconClass(icon) {
if (icon.type_of_icon === 'LOGO') {
return `bxl-${icon.name}`;
}
else if (icon.type_of_icon === 'SOLID') {
return `bxs-${icon.name}`;
}
else {
return `bx-${icon.name}`;
}
}
for (const icon of icons) {
icon.className = getIconClass(icon);
}
export default {
categories,
icons