optimize ui

This commit is contained in:
MaysWind
2020-12-19 02:28:43 +08:00
parent bddf00175a
commit 50bfb35560
4 changed files with 93 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
import accountIcon from "./accountIcon.js";
import categoryIcon from "./categoryIcon.js";
export default function (iconId, iconType) {
if (iconType === 'account') {
return accountIcon(iconId);
} else if (iconType === 'category') {
return categoryIcon(iconId);
} else {
return '';
}
}