@mornya/react-social-libs
Version:
The project of React.js Social Share and Widget modules.
1 lines • 1.33 kB
JavaScript
var e,t,o=this&&this.__extends||(e=function(t,o){return(e=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,o){t.__proto__=o}:function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}))(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}),l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},r=(Object.defineProperty(exports,"__esModule",{value:!0}),l(require("react"))),l=require("../utils/BaseWidgetComponent"),l=(t=l.BaseWidgetComponent,o(TumblrFollow,t),TumblrFollow.prototype.onInit=function(){this.initialize("Tumblr-Follow",{tumblelog:""})},TumblrFollow.prototype.onRender=function(t,o){return r.default.createElement("iframe",{id:this.id,src:this.mapToParam(TumblrFollow.LINK_URL,{type:"follow",tumblelog:t.tumblelog,color:"blue"}),title:"Tumblr Follow",width:"65",height:"20",className:"btn",style:{border:0}})},TumblrFollow.prototype.onMount=function(t){this.setApiStep()},TumblrFollow.LINK_URL="https://platform.tumblr.com/v2/follow_button.html",TumblrFollow);function TumblrFollow(){return null!==t&&t.apply(this,arguments)||this}exports.default=l;