From 803ce849964b135bfd79c74dff90c2ab68de6b75 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 11:54:14 -0500 Subject: [PATCH] Convert to use NavList::PRESENT_LINK constant --- src/Controller/StaffController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/StaffController.php b/src/Controller/StaffController.php index 1439628..07c02c8 100644 --- a/src/Controller/StaffController.php +++ b/src/Controller/StaffController.php @@ -20,13 +20,12 @@ class StaffController extends AbstractController private array $navLinks = [] ) { $this->navLinks = NavList::LIST; + $this->navLinks['staff_dashboard'] = NavList::PRESENT_LINK; } #[Route('/staff-dashboard', name: 'app_staff_dashboard')] public function staffDashboard(#[CurrentUser()] User $user): Response { - $this->navLinks['staff_dashboard'] = 'nav-link text-white active bg-gradient-dark'; - return $this->render( 'internal/staff/staff-dashboard.html.twig', array_merge(