️ Changed href to routerLink on map/home link

pull/22/head
Alix JEUDI--LEMOINE 4 months ago
parent ae7d5e0f36
commit c1615a0b82

@ -141,14 +141,14 @@
>
<li class="flex items-center space-x-2">
<a
href="#"
routerLink="/"
*ngIf="!isHome"
class="block py-2 text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300"
aria-current="page"
>Accueil
</a>
<a
href="/map"
routerLink="/map"
*ngIf="isHome"
class="block py-2 text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300"
aria-current="page"
@ -157,7 +157,6 @@
</li>
<li class="flex items-center space-x-2">
<a
href="#"
class="block py-2 text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300"
>Quêtes
</a>
@ -167,7 +166,6 @@
</li>
<li class="flex items-center space-x-2">
<a
href="#"
class="block py-2 text-gray-900 dark:text-white hover:text-gray-700 dark:hover:text-gray-300"
>Amis
</a>

@ -1,11 +1,11 @@
import { NgIf } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { NavigationEnd, Router } from '@angular/router';
import { NavigationEnd, Router, RouterLink } from '@angular/router';
import { AddPinPopupComponent } from '../add-pin-popup/add-pin-popup.component';
@Component({
selector: 'app-navbar',
imports: [AddPinPopupComponent, NgIf],
imports: [AddPinPopupComponent, NgIf, RouterLink],
templateUrl: './navbar.component.html',
})
export class NavbarComponent implements OnInit {

Loading…
Cancel
Save