1
0
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:
Jari Kolehmainen 2021-07-23 10:54:30 +03:00 committed by GitHub
parent da53aa0d79
commit 823d68014e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,13 @@ export class EntitySettings extends React.Component<Props> {
renderNavigation() { renderNavigation() {
const groups = Object.entries(groupBy(this.menuItems, (item) => item.group || "Extensions")); 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 ( return (
<> <>
<div className="flex items-center pb-8"> <div className="flex items-center pb-8">