fix: nav href
This commit is contained in:
parent
11fe7eafda
commit
9d9ce1737a
@ -7,14 +7,23 @@ import Image from "next/image";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { FaFacebook, FaLinkedin, FaPhone } from "react-icons/fa";
|
import { FaFacebook, FaLinkedin, FaPhone } from "react-icons/fa";
|
||||||
const shareIcons: Record<string, any> = {
|
const shareIcons: Record<string, any> = {
|
||||||
phone: (
|
phone: {
|
||||||
|
link: "tel:+15208036644",
|
||||||
|
dom: (
|
||||||
<span className="social-nav flex gap-3 text-2xl lg:text-[#00898b]">
|
<span className="social-nav flex gap-3 text-2xl lg:text-[#00898b]">
|
||||||
<FaPhone />
|
<FaPhone />
|
||||||
<b className="text-sm">(520) 803-6644</b>
|
<b className="text-sm">(520) 803-6644</b>
|
||||||
</span>
|
</span>
|
||||||
),
|
),
|
||||||
facebook: <FaFacebook className="social-nav text-2xl lg:text-[#00898b]" />,
|
},
|
||||||
linkedin: <FaLinkedin className="social-nav text-2xl lg:text-[#00898b]" />,
|
facebook: {
|
||||||
|
link: "https://www.facebook.com/p/Cochise-Oncology-61556262839823",
|
||||||
|
dom: <FaFacebook className="social-nav text-2xl lg:text-[#00898b]" />,
|
||||||
|
},
|
||||||
|
linkedin: {
|
||||||
|
link: "https://linkedin.com/company/cochise-oncology",
|
||||||
|
dom: <FaLinkedin className="social-nav text-2xl lg:text-[#00898b]" />,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Header({ links }: { links: typeof navMenuData }) {
|
export default function Header({ links }: { links: typeof navMenuData }) {
|
||||||
@ -58,8 +67,8 @@ export default function Header({ links }: { links: typeof navMenuData }) {
|
|||||||
{Object.keys(shareIcons).map((k, idx) => {
|
{Object.keys(shareIcons).map((k, idx) => {
|
||||||
return (
|
return (
|
||||||
<li key={idx} className="!p-0 !m-0">
|
<li key={idx} className="!p-0 !m-0">
|
||||||
<a className="cursor-pointer" href={"/"} target="_blank">
|
<a className="cursor-pointer" href={shareIcons[k].link} target="_blank">
|
||||||
{shareIcons[k]}
|
{shareIcons[k].dom}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user