Convert to use NavList::PRESENT_LINK constant

This commit is contained in:
Ryan Prather 2024-12-17 11:54:14 -05:00
parent ef053bae29
commit 803ce84996

View File

@ -20,13 +20,12 @@ class StaffController extends AbstractController
private array $navLinks = [] private array $navLinks = []
) { ) {
$this->navLinks = NavList::LIST; $this->navLinks = NavList::LIST;
$this->navLinks['staff_dashboard'] = NavList::PRESENT_LINK;
} }
#[Route('/staff-dashboard', name: 'app_staff_dashboard')] #[Route('/staff-dashboard', name: 'app_staff_dashboard')]
public function staffDashboard(#[CurrentUser()] User $user): Response public function staffDashboard(#[CurrentUser()] User $user): Response
{ {
$this->navLinks['staff_dashboard'] = 'nav-link text-white active bg-gradient-dark';
return $this->render( return $this->render(
'internal/staff/staff-dashboard.html.twig', 'internal/staff/staff-dashboard.html.twig',
array_merge( array_merge(