Skip to content

Commit aac85cd

Browse files
committed
Added back sermons menu
1 parent 71eb7f0 commit aac85cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/helpers/SecondaryMenuHelper.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ export class SecondaryMenuHelper {
1515
else if (path.startsWith("/plans") || path.startsWith("/tasks")) result = this.getServingMenu(path);
1616
else if (path.startsWith("/donations")) result = this.getDonationsMenu(path);
1717
else if (path.startsWith("/site")) result = this.getSiteMenu(path);
18-
// Temporarily hidden
19-
// else if (path.startsWith("/sermons")) result = this.getSermonsMenu(path);
20-
// else if (path.startsWith("/calendars")) result = this.getCalendarsMenu(path);
18+
else if (path.startsWith("/sermons")) result = this.getSermonsMenu(path);
19+
else if (path.startsWith("/calendars")) result = this.getCalendarsMenu(path);
2120
else if (path.startsWith("/profile")) result = this.getProfileMenu(path);
2221
else if (path === "/") result = this.getDashboardMenu(path);
2322
return result;
@@ -53,9 +52,10 @@ export class SecondaryMenuHelper {
5352
return { menuItems, label };
5453
};
5554

56-
static getProfileMenu = () => {
55+
static getProfileMenu = (path:string) => {
5756
const menuItems: MenuItem[] = [];
58-
const label: string = "";
57+
let label: string = "";
58+
if (path.startsWith("/profile")) label = "Profile";
5959
menuItems.push({ url: "/profile", label: "Profile", icon: "person" });
6060
menuItems.push({ url: "/profile/devices", label: "Devices", icon: "devices" });
6161
return { menuItems, label };

0 commit comments

Comments
 (0)