@@ -8,20 +8,21 @@ import PropTypes from "prop-types"
88export default function SocialLinks ( { image, socialMedia } ) {
99 const logo = getImage ( image ?. localFile ?. childImageSharp ?. gatsbyImageData )
1010
11- const socialMediaItems = socialMedia ?. map ( item => {
12- return (
13- < a
14- key = { item . id }
15- href = { item . url }
16- target = "_blank"
17- className = { `btn-social m-2 btn-social-icon btn- ${ item . icon ?. name } ` }
18- rel = "noreferrer"
19- aria-label = { `Link externo a ${ item ?. name } ` }
20- >
11+ const socialMediaItems = socialMedia ?. map ( item => (
12+ < a
13+ key = { item . id }
14+ href = { item . url }
15+ target = "_blank"
16+ className = { `btn-social m-2 btn-social-icon btn- ${ item . icon ?. name } ` }
17+ rel = "noreferrer"
18+ aria-label = { `External link to ${ item ?. name } ` }
19+ >
20+ < >
2121 < FaIcon type = { item . icon ?. type } code = { item . icon ?. code } />
22- </ a >
23- )
24- } )
22+ < span className = "visually-hidden" > Link to { item . name } </ span >
23+ </ >
24+ </ a >
25+ ) )
2526
2627 return (
2728 < div className = "Footer__socialMedia d-flex flex-column" >
@@ -33,10 +34,10 @@ export default function SocialLinks({ image, socialMedia }) {
3334
3435 { logo && (
3536 < div className = "Footer__socialMedia__Logo text-center" >
36- < Link to = "/" >
37+ < Link to = "/en " >
3738 < GatsbyImage
3839 image = { logo }
39- alt = { image ?. alternativeText || "Logo Bitlogic" }
40+ alt = { image ?. alternativeText || "Bitlogic Logo " }
4041 />
4142 </ Link >
4243 </ div >
@@ -60,6 +61,9 @@ SocialLinks.propTypes = {
6061 url : PropTypes . string ,
6162 name : PropTypes . string ,
6263 icon : PropTypes . shape ( {
64+ name : PropTypes . string ,
65+ type : PropTypes . string ,
66+ code : PropTypes . string ,
6367 url : PropTypes . string ,
6468 alternativeText : PropTypes . string ,
6569 localFile : PropTypes . shape ( {
0 commit comments