From b71490aa8afe62e70e1d0ae9a23de5632e7417ef Mon Sep 17 00:00:00 2001 From: Ebube Date: Wed, 20 Mar 2024 18:18:39 +0100 Subject: [PATCH] fixed footer link --- src/components/Footer/Footer.tsx | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 7e1152f..b6b14f7 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,8 +1,9 @@ -import { Link } from "react-router-dom"; +// import { Link } from "react-router-dom"; import { socialsIcons } from "../../utils/data"; export default function Footer() { const date = new Date().getFullYear(); + return (
@@ -10,17 +11,23 @@ export default function Footer() { {date} @ First City Monument Bank Limited

- {socialsIcons.map((icon, index) => ( - - {icon.name} - - ))} + {renderSocialLinks()}
); } + +function renderSocialLinks(): JSX.Element { + const link = socialsIcons.map(function (item, index) { + let { name, image, link } = item; + + return ( + + {name} + + ); + }); + + return ; +}