Refactor: make Custom appear as second section on sideBar
This commit is contained in:
parent
a9c5ada45f
commit
96fc1550fc
1 changed files with 5 additions and 1 deletions
|
|
@ -344,7 +344,11 @@ 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 {
|
} else if (a.toLowerCase() === "custom_components") {
|
||||||
|
return -2
|
||||||
|
} else if (b.toLowerCase() === "custom_components") {
|
||||||
|
return 2
|
||||||
|
}else {
|
||||||
return a.localeCompare(b);
|
return a.localeCompare(b);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue