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 = []
) {
$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(