Convert to use NavList::PRESENT_LINK constant
This commit is contained in:
parent
ef053bae29
commit
803ce84996
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user