️ Changed href to routerLink on map/home link

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

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

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

Loading…
Cancel
Save