feat: complete notdienst planning, quick wins and notifications
This commit is contained in:
@@ -57,7 +57,6 @@ const navItems = [
|
||||
label: "Notdienst (Eltern)",
|
||||
icon: CalendarCheck2,
|
||||
exact: true,
|
||||
badge: "4",
|
||||
allowedRoles: [UserRole.ADMIN, UserRole.KOORDINATOR, UserRole.ELTERN],
|
||||
},
|
||||
{
|
||||
@@ -157,7 +156,7 @@ export function SidebarNav({ role }: { role: UserRole }) {
|
||||
<div className="flex flex-col gap-1">
|
||||
{visibleItems
|
||||
.filter((item) => item.section === section)
|
||||
.map(({ href, label, icon, exact, badge }) => {
|
||||
.map(({ href, label, icon, exact }) => {
|
||||
const isActive = exact
|
||||
? pathname === href
|
||||
: pathname.startsWith(href);
|
||||
@@ -168,7 +167,6 @@ export function SidebarNav({ role }: { role: UserRole }) {
|
||||
label={label}
|
||||
icon={icon}
|
||||
active={isActive}
|
||||
badge={badge}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user