{"action":"created","comment":{"url":"https://api.github.com/repos/natgeo/mortar/pulls/comments/74122748","id":74122748,"diff_hunk":"@@ -3,8 +3,41 @@\n import React, { Component, PropTypes }  from 'react';\n import {Pestle} from '@natgeo/mortar-pestle';\n import classNames from 'classnames';\n+import {SimpleModal} from './modal.jsx';\n+\n \n class Tooltip extends Component {\n+  static propTypes = {\n+    tooltipContent: PropTypes.string,\n+    placement: PropTypes.oneOf(['top', 'left', 'right', 'bottom']),\n+    modal: PropTypes.bool\n+  };\n+\n+  static defaultProps = {\n+    placement: \"top\",\n+    modal: false\n+  };\n+\n+  render(){\n+    if(this.props.modal){\n+      return <TooltipModal {...this.props} />\n+    }\n+    else {\n+      return <TooltipBubble {...this.props} />\n+    }\n+  }\n+}\n+\n+class TooltipBubble extends Component{\n+  static propTypes = {\n+    tooltipContent: PropTypes.string,\n+    placement: PropTypes.oneOf(['top', 'left', 'right', 'bottom'])\n+  };\n+\n+  static defaultProps = {\n+    placement: \"top\"","path":"app/modules/tooltips/scripts/MTTooltip.jsx","position":36,"original_position":36,"commit_id":"a01ce85bcf2a7d123421800292f2076fae3e5b23","original_commit_id":"a01ce85bcf2a7d123421800292f2076fae3e5b23","user":{"login":"alexrqs","id":1099589,"avatar_url":"https://avatars.githubusercontent.com/u/1099589?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrqs","html_url":"https://github.com/alexrqs","followers_url":"https://api.github.com/users/alexrqs/followers","following_url":"https://api.github.com/users/alexrqs/following{/other_user}","gists_url":"https://api.github.com/users/alexrqs/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrqs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrqs/subscriptions","organizations_url":"https://api.github.com/users/alexrqs/orgs","repos_url":"https://api.github.com/users/alexrqs/repos","events_url":"https://api.github.com/users/alexrqs/events{/privacy}","received_events_url":"https://api.github.com/users/alexrqs/received_events","type":"User","site_admin":false},"body":"right :)","created_at":"2016-08-09T18:56:45Z","updated_at":"2016-08-09T18:56:45Z","html_url":"https://github.com/natgeo/mortar/pull/190#discussion_r74122748","pull_request_url":"https://api.github.com/repos/natgeo/mortar/pulls/190","_links":{"self":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/comments/74122748"},"html":{"href":"https://github.com/natgeo/mortar/pull/190#discussion_r74122748"},"pull_request":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/190"}}},"pull_request":{"url":"https://api.github.com/repos/natgeo/mortar/pulls/190","id":79614427,"html_url":"https://github.com/natgeo/mortar/pull/190","diff_url":"https://github.com/natgeo/mortar/pull/190.diff","patch_url":"https://github.com/natgeo/mortar/pull/190.patch","issue_url":"https://api.github.com/repos/natgeo/mortar/issues/190","number":190,"state":"open","locked":false,"title":"Feature/syto 666","user":{"login":"hkekeli","id":2752485,"avatar_url":"https://avatars.githubusercontent.com/u/2752485?v=3","gravatar_id":"","url":"https://api.github.com/users/hkekeli","html_url":"https://github.com/hkekeli","followers_url":"https://api.github.com/users/hkekeli/followers","following_url":"https://api.github.com/users/hkekeli/following{/other_user}","gists_url":"https://api.github.com/users/hkekeli/gists{/gist_id}","starred_url":"https://api.github.com/users/hkekeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkekeli/subscriptions","organizations_url":"https://api.github.com/users/hkekeli/orgs","repos_url":"https://api.github.com/users/hkekeli/repos","events_url":"https://api.github.com/users/hkekeli/events{/privacy}","received_events_url":"https://api.github.com/users/hkekeli/received_events","type":"User","site_admin":false},"body":"https://jira.nationalgeographic.com/browse/SYTO-666\r\n\r\n-git checkout branch\r\n- gulp serve\r\n- Visit http://localhost:3000/components\r\n\r\n- Click on the tooltip button to open a modal","created_at":"2016-08-01T18:35:51Z","updated_at":"2016-08-09T18:56:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0aaebf05114a110319553503fefdb704321a725","assignee":{"login":"xiwcx","id":2304131,"avatar_url":"https://avatars.githubusercontent.com/u/2304131?v=3","gravatar_id":"","url":"https://api.github.com/users/xiwcx","html_url":"https://github.com/xiwcx","followers_url":"https://api.github.com/users/xiwcx/followers","following_url":"https://api.github.com/users/xiwcx/following{/other_user}","gists_url":"https://api.github.com/users/xiwcx/gists{/gist_id}","starred_url":"https://api.github.com/users/xiwcx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiwcx/subscriptions","organizations_url":"https://api.github.com/users/xiwcx/orgs","repos_url":"https://api.github.com/users/xiwcx/repos","events_url":"https://api.github.com/users/xiwcx/events{/privacy}","received_events_url":"https://api.github.com/users/xiwcx/received_events","type":"User","site_admin":false},"assignees":[{"login":"xiwcx","id":2304131,"avatar_url":"https://avatars.githubusercontent.com/u/2304131?v=3","gravatar_id":"","url":"https://api.github.com/users/xiwcx","html_url":"https://github.com/xiwcx","followers_url":"https://api.github.com/users/xiwcx/followers","following_url":"https://api.github.com/users/xiwcx/following{/other_user}","gists_url":"https://api.github.com/users/xiwcx/gists{/gist_id}","starred_url":"https://api.github.com/users/xiwcx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiwcx/subscriptions","organizations_url":"https://api.github.com/users/xiwcx/orgs","repos_url":"https://api.github.com/users/xiwcx/repos","events_url":"https://api.github.com/users/xiwcx/events{/privacy}","received_events_url":"https://api.github.com/users/xiwcx/received_events","type":"User","site_admin":false},{"login":"krlospelaez","id":9850818,"avatar_url":"https://avatars.githubusercontent.com/u/9850818?v=3","gravatar_id":"","url":"https://api.github.com/users/krlospelaez","html_url":"https://github.com/krlospelaez","followers_url":"https://api.github.com/users/krlospelaez/followers","following_url":"https://api.github.com/users/krlospelaez/following{/other_user}","gists_url":"https://api.github.com/users/krlospelaez/gists{/gist_id}","starred_url":"https://api.github.com/users/krlospelaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krlospelaez/subscriptions","organizations_url":"https://api.github.com/users/krlospelaez/orgs","repos_url":"https://api.github.com/users/krlospelaez/repos","events_url":"https://api.github.com/users/krlospelaez/events{/privacy}","received_events_url":"https://api.github.com/users/krlospelaez/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/natgeo/mortar/pulls/190/commits","review_comments_url":"https://api.github.com/repos/natgeo/mortar/pulls/190/comments","review_comment_url":"https://api.github.com/repos/natgeo/mortar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/natgeo/mortar/issues/190/comments","statuses_url":"https://api.github.com/repos/natgeo/mortar/statuses/a01ce85bcf2a7d123421800292f2076fae3e5b23","head":{"label":"natgeo:feature/SYTO-666","ref":"feature/SYTO-666","sha":"a01ce85bcf2a7d123421800292f2076fae3e5b23","user":{"login":"natgeo","id":343010,"avatar_url":"https://avatars.githubusercontent.com/u/343010?v=3","gravatar_id":"","url":"https://api.github.com/users/natgeo","html_url":"https://github.com/natgeo","followers_url":"https://api.github.com/users/natgeo/followers","following_url":"https://api.github.com/users/natgeo/following{/other_user}","gists_url":"https://api.github.com/users/natgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/natgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natgeo/subscriptions","organizations_url":"https://api.github.com/users/natgeo/orgs","repos_url":"https://api.github.com/users/natgeo/repos","events_url":"https://api.github.com/users/natgeo/events{/privacy}","received_events_url":"https://api.github.com/users/natgeo/received_events","type":"Organization","site_admin":false},"repo":{"id":13811674,"name":"mortar","full_name":"natgeo/mortar","owner":{"login":"natgeo","id":343010,"avatar_url":"https://avatars.githubusercontent.com/u/343010?v=3","gravatar_id":"","url":"https://api.github.com/users/natgeo","html_url":"https://github.com/natgeo","followers_url":"https://api.github.com/users/natgeo/followers","following_url":"https://api.github.com/users/natgeo/following{/other_user}","gists_url":"https://api.github.com/users/natgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/natgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natgeo/subscriptions","organizations_url":"https://api.github.com/users/natgeo/orgs","repos_url":"https://api.github.com/users/natgeo/repos","events_url":"https://api.github.com/users/natgeo/events{/privacy}","received_events_url":"https://api.github.com/users/natgeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/natgeo/mortar","description":"NGS foundational framework","fork":false,"url":"https://api.github.com/repos/natgeo/mortar","forks_url":"https://api.github.com/repos/natgeo/mortar/forks","keys_url":"https://api.github.com/repos/natgeo/mortar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natgeo/mortar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natgeo/mortar/teams","hooks_url":"https://api.github.com/repos/natgeo/mortar/hooks","issue_events_url":"https://api.github.com/repos/natgeo/mortar/issues/events{/number}","events_url":"https://api.github.com/repos/natgeo/mortar/events","assignees_url":"https://api.github.com/repos/natgeo/mortar/assignees{/user}","branches_url":"https://api.github.com/repos/natgeo/mortar/branches{/branch}","tags_url":"https://api.github.com/repos/natgeo/mortar/tags","blobs_url":"https://api.github.com/repos/natgeo/mortar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natgeo/mortar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natgeo/mortar/git/refs{/sha}","trees_url":"https://api.github.com/repos/natgeo/mortar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natgeo/mortar/statuses/{sha}","languages_url":"https://api.github.com/repos/natgeo/mortar/languages","stargazers_url":"https://api.github.com/repos/natgeo/mortar/stargazers","contributors_url":"https://api.github.com/repos/natgeo/mortar/contributors","subscribers_url":"https://api.github.com/repos/natgeo/mortar/subscribers","subscription_url":"https://api.github.com/repos/natgeo/mortar/subscription","commits_url":"https://api.github.com/repos/natgeo/mortar/commits{/sha}","git_commits_url":"https://api.github.com/repos/natgeo/mortar/git/commits{/sha}","comments_url":"https://api.github.com/repos/natgeo/mortar/comments{/number}","issue_comment_url":"https://api.github.com/repos/natgeo/mortar/issues/comments{/number}","contents_url":"https://api.github.com/repos/natgeo/mortar/contents/{+path}","compare_url":"https://api.github.com/repos/natgeo/mortar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natgeo/mortar/merges","archive_url":"https://api.github.com/repos/natgeo/mortar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natgeo/mortar/downloads","issues_url":"https://api.github.com/repos/natgeo/mortar/issues{/number}","pulls_url":"https://api.github.com/repos/natgeo/mortar/pulls{/number}","milestones_url":"https://api.github.com/repos/natgeo/mortar/milestones{/number}","notifications_url":"https://api.github.com/repos/natgeo/mortar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natgeo/mortar/labels{/name}","releases_url":"https://api.github.com/repos/natgeo/mortar/releases{/id}","deployments_url":"https://api.github.com/repos/natgeo/mortar/deployments","created_at":"2013-10-23T18:53:51Z","updated_at":"2016-08-08T15:37:28Z","pushed_at":"2016-08-09T18:47:23Z","git_url":"git://github.com/natgeo/mortar.git","ssh_url":"git@github.com:natgeo/mortar.git","clone_url":"https://github.com/natgeo/mortar.git","svn_url":"https://github.com/natgeo/mortar","homepage":"http://style-guide.nationalgeographic.com","size":10914,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"natgeo:master","ref":"master","sha":"cb70f9d39bad77d46483596ab07ed9608f8dee4f","user":{"login":"natgeo","id":343010,"avatar_url":"https://avatars.githubusercontent.com/u/343010?v=3","gravatar_id":"","url":"https://api.github.com/users/natgeo","html_url":"https://github.com/natgeo","followers_url":"https://api.github.com/users/natgeo/followers","following_url":"https://api.github.com/users/natgeo/following{/other_user}","gists_url":"https://api.github.com/users/natgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/natgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natgeo/subscriptions","organizations_url":"https://api.github.com/users/natgeo/orgs","repos_url":"https://api.github.com/users/natgeo/repos","events_url":"https://api.github.com/users/natgeo/events{/privacy}","received_events_url":"https://api.github.com/users/natgeo/received_events","type":"Organization","site_admin":false},"repo":{"id":13811674,"name":"mortar","full_name":"natgeo/mortar","owner":{"login":"natgeo","id":343010,"avatar_url":"https://avatars.githubusercontent.com/u/343010?v=3","gravatar_id":"","url":"https://api.github.com/users/natgeo","html_url":"https://github.com/natgeo","followers_url":"https://api.github.com/users/natgeo/followers","following_url":"https://api.github.com/users/natgeo/following{/other_user}","gists_url":"https://api.github.com/users/natgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/natgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natgeo/subscriptions","organizations_url":"https://api.github.com/users/natgeo/orgs","repos_url":"https://api.github.com/users/natgeo/repos","events_url":"https://api.github.com/users/natgeo/events{/privacy}","received_events_url":"https://api.github.com/users/natgeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/natgeo/mortar","description":"NGS foundational framework","fork":false,"url":"https://api.github.com/repos/natgeo/mortar","forks_url":"https://api.github.com/repos/natgeo/mortar/forks","keys_url":"https://api.github.com/repos/natgeo/mortar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/natgeo/mortar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/natgeo/mortar/teams","hooks_url":"https://api.github.com/repos/natgeo/mortar/hooks","issue_events_url":"https://api.github.com/repos/natgeo/mortar/issues/events{/number}","events_url":"https://api.github.com/repos/natgeo/mortar/events","assignees_url":"https://api.github.com/repos/natgeo/mortar/assignees{/user}","branches_url":"https://api.github.com/repos/natgeo/mortar/branches{/branch}","tags_url":"https://api.github.com/repos/natgeo/mortar/tags","blobs_url":"https://api.github.com/repos/natgeo/mortar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/natgeo/mortar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/natgeo/mortar/git/refs{/sha}","trees_url":"https://api.github.com/repos/natgeo/mortar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/natgeo/mortar/statuses/{sha}","languages_url":"https://api.github.com/repos/natgeo/mortar/languages","stargazers_url":"https://api.github.com/repos/natgeo/mortar/stargazers","contributors_url":"https://api.github.com/repos/natgeo/mortar/contributors","subscribers_url":"https://api.github.com/repos/natgeo/mortar/subscribers","subscription_url":"https://api.github.com/repos/natgeo/mortar/subscription","commits_url":"https://api.github.com/repos/natgeo/mortar/commits{/sha}","git_commits_url":"https://api.github.com/repos/natgeo/mortar/git/commits{/sha}","comments_url":"https://api.github.com/repos/natgeo/mortar/comments{/number}","issue_comment_url":"https://api.github.com/repos/natgeo/mortar/issues/comments{/number}","contents_url":"https://api.github.com/repos/natgeo/mortar/contents/{+path}","compare_url":"https://api.github.com/repos/natgeo/mortar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/natgeo/mortar/merges","archive_url":"https://api.github.com/repos/natgeo/mortar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/natgeo/mortar/downloads","issues_url":"https://api.github.com/repos/natgeo/mortar/issues{/number}","pulls_url":"https://api.github.com/repos/natgeo/mortar/pulls{/number}","milestones_url":"https://api.github.com/repos/natgeo/mortar/milestones{/number}","notifications_url":"https://api.github.com/repos/natgeo/mortar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/natgeo/mortar/labels{/name}","releases_url":"https://api.github.com/repos/natgeo/mortar/releases{/id}","deployments_url":"https://api.github.com/repos/natgeo/mortar/deployments","created_at":"2013-10-23T18:53:51Z","updated_at":"2016-08-08T15:37:28Z","pushed_at":"2016-08-09T18:47:23Z","git_url":"git://github.com/natgeo/mortar.git","ssh_url":"git@github.com:natgeo/mortar.git","clone_url":"https://github.com/natgeo/mortar.git","svn_url":"https://github.com/natgeo/mortar","homepage":"http://style-guide.nationalgeographic.com","size":10914,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/190"},"html":{"href":"https://github.com/natgeo/mortar/pull/190"},"issue":{"href":"https://api.github.com/repos/natgeo/mortar/issues/190"},"comments":{"href":"https://api.github.com/repos/natgeo/mortar/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/natgeo/mortar/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/natgeo/mortar/statuses/a01ce85bcf2a7d123421800292f2076fae3e5b23"}}}}
{"actor":{"display_login":"alexrqs"}}