Skip to content

Commit

Permalink
Fix: remove social-follow wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
luciobenini committed Nov 2, 2021
1 parent d5c6678 commit ffed9ed
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 51 deletions.
90 changes: 46 additions & 44 deletions components/social-follow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,53 +11,55 @@ export default function SocialFollow({ className }) {
} = useOptions()

return (
<div className={className}>
<ul className="social-follow">
{facebook && facebook.show && (
<SocialLink
name="Facebook"
icon={facebook.icon}
url="https://www.facebook.com/"
page={facebook.page}
/>
)}
{instagram && instagram.show && (
<SocialLink
name="Instagram"
icon={instagram.icon}
url="https://instagram.com/"
page={instagram.username}
/>
)}
{twitter && twitter.show && (
<SocialLink
name="Twitter"
icon={twitter.icon}
url="https://twitter.com/"
page={twitter.username}
/>
)}
{linkedin && linkedin.show && (
<SocialLink
name="LinkedIn"
icon={linkedin.icon}
url="https://www.linkedin.com/company/"
page={linkedin.page}
/>
)}
{github && github.show && (
<SocialLink
name="GitHub"
icon={github.icon}
url="https://github.com/"
page={github.username}
/>
)}
</ul>
</div>
<ul className={className}>
{facebook && facebook.show && (
<SocialLink
name="Facebook"
icon={facebook.icon}
url="https://www.facebook.com/"
page={facebook.page}
/>
)}
{instagram && instagram.show && (
<SocialLink
name="Instagram"
icon={instagram.icon}
url="https://instagram.com/"
page={instagram.username}
/>
)}
{twitter && twitter.show && (
<SocialLink
name="Twitter"
icon={twitter.icon}
url="https://twitter.com/"
page={twitter.username}
/>
)}
{linkedin && linkedin.show && (
<SocialLink
name="LinkedIn"
icon={linkedin.icon}
url="https://www.linkedin.com/company/"
page={linkedin.page}
/>
)}
{github && github.show && (
<SocialLink
name="GitHub"
icon={github.icon}
url="https://github.com/"
page={github.username}
/>
)}
</ul>
)
}

SocialFollow.propTypes = {
className: PropTypes.string,
}

SocialFollow.defaultProps = {
className: "social-follow",
}
24 changes: 18 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@pittica/gatsby-plugin-seo",
"private": false,
"description": "SEO optimization plugin for GatsbyJS.",
"version": "4.0.0",
"version": "4.0.1",
"author": {
"name": "Lucio Benini",
"email": "[email protected]",
Expand Down

0 comments on commit ffed9ed

Please sign in to comment.