Refactor: make Custom appear as second section on sideBar

This commit is contained in:
igorrCarvalho 2023-11-28 18:48:34 -03:00
commit 96fc1550fc

View file

@ -344,6 +344,10 @@ export default function ExtraSidebar(): JSX.Element {
return -1; return -1;
} else if (b.toLowerCase() === "saved_components") { } else if (b.toLowerCase() === "saved_components") {
return 1; return 1;
} else if (a.toLowerCase() === "custom_components") {
return -2
} else if (b.toLowerCase() === "custom_components") {
return 2
}else { }else {
return a.localeCompare(b); return a.localeCompare(b);
} }