fix footer link open in new tab
This commit is contained in:
@@ -15,7 +15,6 @@ import BlackLogo14 from "../assets/BlackLogo14";
|
|||||||
import { navigateTo } from "../App";
|
import { navigateTo } from "../App";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import GlobalOffices from "./GlobalOffices";
|
import GlobalOffices from "./GlobalOffices";
|
||||||
import { Link } from "react-router-dom";
|
|
||||||
|
|
||||||
const footerNavigation = {
|
const footerNavigation = {
|
||||||
Explore: [
|
Explore: [
|
||||||
@@ -206,12 +205,16 @@ const FooterSection = ({
|
|||||||
<ul className="space-y-3">
|
<ul className="space-y-3">
|
||||||
{links.map((link) => (
|
{links.map((link) => (
|
||||||
<li key={link.label}>
|
<li key={link.label}>
|
||||||
<Link
|
<a
|
||||||
to={link.url}
|
href={link.url || '#'}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.preventDefault();
|
||||||
|
navigateTo(link.url);
|
||||||
|
}}
|
||||||
className="text-[#CCCCCC] hover:text-white transition-colors duration-200 text-sm block py-1 hover:translate-x-1 transform cursor-pointer"
|
className="text-[#CCCCCC] hover:text-white transition-colors duration-200 text-sm block py-1 hover:translate-x-1 transform cursor-pointer"
|
||||||
>
|
>
|
||||||
{link.label}
|
{link.label}
|
||||||
</Link>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user