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 ; +}