react-social-kr
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "react-social-kr", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "React social buttons and counts for Facebook, Pinterest, Google, Naver, KaKao etc ...", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-social.js", |
@@ -7,3 +7,3 @@ # react-social-kr | ||
> social (Facebook, Google, VKontakte, Pinterest ...) buttons and counts. | ||
> Plus, Korean SNS supports (Naver Blog, KaKaoTalk, KaKaoStory ...) | ||
> Plus, Korean SNS supports (Naver Blog, KaKao Talk, KaKao Story ...) | ||
@@ -23,10 +23,14 @@ > Original Source from [react-social](https://github.com/olahol/react-social). Thanks to Ola Holmström and all contributors. | ||
@connect( | ||
(state, ownProps) => ({ | ||
pathname: ownProps.location.pathname | ||
}), {}) | ||
class App extends Component { | ||
render { | ||
let url = "https://github.com"; | ||
const { pathname } = this.props; | ||
return ( | ||
<FacebookButton url={url} appId={appId}> | ||
<FacebookCount url={url} /> | ||
{" Share " + url} | ||
<FacebookButton pathname={pathname} appId={appId}> | ||
<FacebookCount pathname={pathname} /> | ||
{" Share " + pathname} | ||
</FacebookButton> | ||
@@ -61,5 +65,5 @@ ); | ||
##### url | ||
##### pathname | ||
The url you want to get the count of, default is `window.location`. | ||
The pathname you want to get the count of, default is `window.location`. | ||
@@ -105,5 +109,5 @@ ##### token | ||
##### url | ||
##### pathname | ||
The url you want to share, default is `window.location`. | ||
The pathname you want to share, default is `window.location`. | ||
@@ -110,0 +114,0 @@ ##### target |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32480
203