@@ -32,8 +32,8 @@ export default class ShareButton extends React.Component {
3232 this . dropdownClicked = true
3333 }
3434 ReactDOM . findDOMNode ( this . refs . dropdown ) . addEventListener ( 'click' , this . dropdownInterceptor )
35- this . shareWithPublicURLHandler = e => {
36- this . handleShareWithPublicURLClick ( e )
35+ this . shareViaPublicURLHandler = e => {
36+ this . handleShareViaPublicURLClick ( e )
3737 }
3838 }
3939
@@ -66,7 +66,7 @@ export default class ShareButton extends React.Component {
6666 this . setState ( { openDropdown : false } )
6767 }
6868
69- handleShareWithPublicURLClick ( e ) {
69+ handleShareViaPublicURLClick ( e ) {
7070 let { user } = this . props
7171 let input = Object . assign ( { } , this . props . article , {
7272 clientKey : clientKey . get ( ) ,
@@ -76,7 +76,7 @@ export default class ShareButton extends React.Component {
7676 isSharing : true ,
7777 failed : false
7878 } , ( ) => {
79- api . shareWithPublicURL ( input )
79+ api . shareViaPublicURL ( input )
8080 . then ( res => {
8181 let url = res . body . url
8282 this . setState ( { url : url , isSharing : false } )
@@ -115,10 +115,10 @@ export default class ShareButton extends React.Component {
115115 {
116116 ! hasPublicURL ? (
117117 < button
118- onClick = { e => this . shareWithPublicURLHandler ( e ) }
118+ onClick = { e => this . shareViaPublicURLHandler ( e ) }
119119 ref = 'sharePublicURL'
120120 disabled = { this . state . isSharing } >
121- < i className = 'fa fa-fw fa-external-link' /> { this . state . failed ? 'Failed : Click to Try again' : ! this . state . isSharing ? 'Share with public URL' : 'Sharing...' }
121+ < i className = 'fa fa-fw fa-external-link' /> { this . state . failed ? 'Failed : Click to Try again' : ! this . state . isSharing ? 'Share via public URL' : 'Sharing...' }
122122 </ button >
123123 ) : (
124124 < div className = 'ShareButton-url' >
0 commit comments