mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix entity settings menu order (#3494)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
da53aa0d79
commit
823d68014e
@ -82,6 +82,13 @@ export class EntitySettings extends React.Component<Props> {
|
||||
renderNavigation() {
|
||||
const groups = Object.entries(groupBy(this.menuItems, (item) => item.group || "Extensions"));
|
||||
|
||||
groups.sort((a, b) => {
|
||||
if (a[0] === "Settings") return -1;
|
||||
if (a[0] === "Extensions") return 1;
|
||||
|
||||
return a[0] <= b[0] ? -1 : 1;
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center pb-8">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user