We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3f0f59 commit 4692a05Copy full SHA for 4692a05
components/dashboard/src/menu/Menu.tsx
@@ -68,7 +68,15 @@ export default function Menu() {
68
const adminMenu: Entry = {
69
title: "Admin",
70
link: "/admin",
71
- alternatives: [...getAdminTabs().map((entry) => entry.link)],
+ alternatives: [
72
+ ...getAdminTabs().reduce(
73
+ (prevEntry, currEntry) =>
74
+ currEntry.alternatives
75
+ ? [...prevEntry, ...currEntry.alternatives, currEntry.link]
76
+ : [...prevEntry, currEntry.link],
77
+ [] as string[],
78
+ ),
79
+ ],
80
};
81
82
const handleFeedbackFormClick = () => {
0 commit comments