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,7 +344,11 @@ export default function ExtraSidebar(): JSX.Element {
return -1;
} else if (b.toLowerCase() === "saved_components") {
return 1;
} else {
} else if (a.toLowerCase() === "custom_components") {
return -2
} else if (b.toLowerCase() === "custom_components") {
return 2
}else {
return a.localeCompare(b);
}
})