Skip to content

Commit

Permalink
Merge pull request #116 from jaketrent/revert-pr-109
Browse files Browse the repository at this point in the history
Revert pr 109
  • Loading branch information
couetilc authored Mar 22, 2022
2 parents 01b1815 + 9df8b23 commit a9fdc43
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
{
"name": "react-social-icons",
"version": "5.12.0",
"version": "5.13.0",
"description": "beautiful, easy svg social icons in react",
"main": "./build/react-social-icons.js",
"types": "./build/react-social-icons.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/_networks-db.js

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

9 changes: 2 additions & 7 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import React from 'react'

import { socialSvgContent } from './styles.js'

// eslint-disable-next-line react/prop-types
function Background({ networkKey, fgColor, ...props }) {
function Background({ networkKey, ...props }) { // eslint-disable-line react/prop-types
return (
<g
{...props}
className="social-svg-background"
style={{ ...socialSvgContent, fill: fgColor || socialSvgContent.fill }}
>
<g {...props} className="social-svg-background" style={socialSvgContent}>
<circle cx="32" cy="32" r="31" />
</g>
)
Expand Down
2 changes: 1 addition & 1 deletion src/social-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function SocialIcon(props) {
>
<div className="social-container" style={socialContainer}>
<svg className="social-svg" style={socialSvg} viewBox="0 0 64 64">
<Background fgColor={fgColor} />
<Background />
<Icon networkKey={networkKey} fgColor={fgColor} />
<Mask networkKey={networkKey} bgColor={bgColor} />
</svg>
Expand Down

0 comments on commit a9fdc43

Please sign in to comment.