{"action":"created","comment":{"url":"https://api.github.com/repos/kiwicom/mobile/pulls/comments/232649530","pull_request_review_id":173889758,"id":232649530,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjY0OTUzMA==","diff_hunk":"@@ -188,28 +188,12 @@ const calculateDaysOfStay = (checkin, checkout) => {\n   return null;\n };\n \n-export default class PriceFilterWithContext extends React.Component<Props> {\n-  renderInner = ({\n-    currency,\n-    checkin,\n-    checkout,\n-    currentSearchStats,\n-  }: HotelsContextState) => {\n-    const daysOfStay = calculateDaysOfStay(checkin, checkout);\n-    if (daysOfStay === null) {\n-      return null;\n-    }\n-    return (\n-      <PriceFilter\n-        {...this.props}\n-        currentSearchStats={currentSearchStats}\n-        currency={currency}\n-        daysOfStay={daysOfStay}\n-      />\n-    );\n-  };\n+const select = ({ currency, checkin, checkout, currentSearchStats }) => ({\n+  currency,\n+  checkin,\n+  checkout,\n+  currentSearchStats,\n+  daysOfStay: calculateDaysOfStay(checkin, checkout),","path":"app/hotels/src/filter/price/PriceFilter.js","position":58,"original_position":58,"commit_id":"c9529dfa18c868223b47fd99e071cce1cc12c554","original_commit_id":"dd9c3274f41d090d57d7f5c829437fbaab3b3012","user":{"login":"RobinCsl","id":22741774,"node_id":"MDQ6VXNlcjIyNzQxNzc0","avatar_url":"https://avatars3.githubusercontent.com/u/22741774?v=4","gravatar_id":"","url":"https://api.github.com/users/RobinCsl","html_url":"https://github.com/RobinCsl","followers_url":"https://api.github.com/users/RobinCsl/followers","following_url":"https://api.github.com/users/RobinCsl/following{/other_user}","gists_url":"https://api.github.com/users/RobinCsl/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinCsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinCsl/subscriptions","organizations_url":"https://api.github.com/users/RobinCsl/orgs","repos_url":"https://api.github.com/users/RobinCsl/repos","events_url":"https://api.github.com/users/RobinCsl/events{/privacy}","received_events_url":"https://api.github.com/users/RobinCsl/received_events","type":"User","site_admin":false},"body":"True, and even that logic could be integrated into the context.","created_at":"2018-11-12T13:06:01Z","updated_at":"2018-11-12T13:06:02Z","html_url":"https://github.com/kiwicom/mobile/pull/1315#discussion_r232649530","pull_request_url":"https://api.github.com/repos/kiwicom/mobile/pulls/1315","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/comments/232649530"},"html":{"href":"https://github.com/kiwicom/mobile/pull/1315#discussion_r232649530"},"pull_request":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/1315"}},"in_reply_to_id":232646633},"pull_request":{"url":"https://api.github.com/repos/kiwicom/mobile/pulls/1315","id":230122108,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwMTIyMTA4","html_url":"https://github.com/kiwicom/mobile/pull/1315","diff_url":"https://github.com/kiwicom/mobile/pull/1315.diff","patch_url":"https://github.com/kiwicom/mobile/pull/1315.patch","issue_url":"https://api.github.com/repos/kiwicom/mobile/issues/1315","number":1315,"state":"open","locked":false,"title":"Hotels: Use withHotelsContext","user":{"login":"tbergq","id":7705041,"node_id":"MDQ6VXNlcjc3MDUwNDE=","avatar_url":"https://avatars3.githubusercontent.com/u/7705041?v=4","gravatar_id":"","url":"https://api.github.com/users/tbergq","html_url":"https://github.com/tbergq","followers_url":"https://api.github.com/users/tbergq/followers","following_url":"https://api.github.com/users/tbergq/following{/other_user}","gists_url":"https://api.github.com/users/tbergq/gists{/gist_id}","starred_url":"https://api.github.com/users/tbergq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbergq/subscriptions","organizations_url":"https://api.github.com/users/tbergq/orgs","repos_url":"https://api.github.com/users/tbergq/repos","events_url":"https://api.github.com/users/tbergq/events{/privacy}","received_events_url":"https://api.github.com/users/tbergq/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-12T12:44:26Z","updated_at":"2018-11-12T13:06:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2be6fc0cceb5e19865ef21c9b98098764a27e19","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiwicom/mobile/pulls/1315/commits","review_comments_url":"https://api.github.com/repos/kiwicom/mobile/pulls/1315/comments","review_comment_url":"https://api.github.com/repos/kiwicom/mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiwicom/mobile/issues/1315/comments","statuses_url":"https://api.github.com/repos/kiwicom/mobile/statuses/c9529dfa18c868223b47fd99e071cce1cc12c554","head":{"label":"kiwicom:use-with-hotels-context","ref":"use-with-hotels-context","sha":"c9529dfa18c868223b47fd99e071cce1cc12c554","user":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"repo":{"id":105595148,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU1OTUxNDg=","name":"mobile","full_name":"kiwicom/mobile","private":false,"owner":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kiwicom/mobile","description":":calling: Kiwi.com mobile app written in React Native","fork":false,"url":"https://api.github.com/repos/kiwicom/mobile","forks_url":"https://api.github.com/repos/kiwicom/mobile/forks","keys_url":"https://api.github.com/repos/kiwicom/mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiwicom/mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiwicom/mobile/teams","hooks_url":"https://api.github.com/repos/kiwicom/mobile/hooks","issue_events_url":"https://api.github.com/repos/kiwicom/mobile/issues/events{/number}","events_url":"https://api.github.com/repos/kiwicom/mobile/events","assignees_url":"https://api.github.com/repos/kiwicom/mobile/assignees{/user}","branches_url":"https://api.github.com/repos/kiwicom/mobile/branches{/branch}","tags_url":"https://api.github.com/repos/kiwicom/mobile/tags","blobs_url":"https://api.github.com/repos/kiwicom/mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiwicom/mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiwicom/mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiwicom/mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiwicom/mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/kiwicom/mobile/languages","stargazers_url":"https://api.github.com/repos/kiwicom/mobile/stargazers","contributors_url":"https://api.github.com/repos/kiwicom/mobile/contributors","subscribers_url":"https://api.github.com/repos/kiwicom/mobile/subscribers","subscription_url":"https://api.github.com/repos/kiwicom/mobile/subscription","commits_url":"https://api.github.com/repos/kiwicom/mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiwicom/mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiwicom/mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiwicom/mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiwicom/mobile/contents/{+path}","compare_url":"https://api.github.com/repos/kiwicom/mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiwicom/mobile/merges","archive_url":"https://api.github.com/repos/kiwicom/mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiwicom/mobile/downloads","issues_url":"https://api.github.com/repos/kiwicom/mobile/issues{/number}","pulls_url":"https://api.github.com/repos/kiwicom/mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/kiwicom/mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/kiwicom/mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiwicom/mobile/labels{/name}","releases_url":"https://api.github.com/repos/kiwicom/mobile/releases{/id}","deployments_url":"https://api.github.com/repos/kiwicom/mobile/deployments","created_at":"2017-10-02T23:21:42Z","updated_at":"2018-11-12T10:36:16Z","pushed_at":"2018-11-12T13:03:17Z","git_url":"git://github.com/kiwicom/mobile.git","ssh_url":"git@github.com:kiwicom/mobile.git","clone_url":"https://github.com/kiwicom/mobile.git","svn_url":"https://github.com/kiwicom/mobile","homepage":"https://www.kiwi.com/","size":20256,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":16,"watchers":69,"default_branch":"master"}},"base":{"label":"kiwicom:master","ref":"master","sha":"8941d47b2a02e37a43a98c08612b255488fd9b43","user":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"repo":{"id":105595148,"node_id":"MDEwOlJlcG9zaXRvcnkxMDU1OTUxNDg=","name":"mobile","full_name":"kiwicom/mobile","private":false,"owner":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kiwicom/mobile","description":":calling: Kiwi.com mobile app written in React Native","fork":false,"url":"https://api.github.com/repos/kiwicom/mobile","forks_url":"https://api.github.com/repos/kiwicom/mobile/forks","keys_url":"https://api.github.com/repos/kiwicom/mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiwicom/mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiwicom/mobile/teams","hooks_url":"https://api.github.com/repos/kiwicom/mobile/hooks","issue_events_url":"https://api.github.com/repos/kiwicom/mobile/issues/events{/number}","events_url":"https://api.github.com/repos/kiwicom/mobile/events","assignees_url":"https://api.github.com/repos/kiwicom/mobile/assignees{/user}","branches_url":"https://api.github.com/repos/kiwicom/mobile/branches{/branch}","tags_url":"https://api.github.com/repos/kiwicom/mobile/tags","blobs_url":"https://api.github.com/repos/kiwicom/mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiwicom/mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiwicom/mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiwicom/mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiwicom/mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/kiwicom/mobile/languages","stargazers_url":"https://api.github.com/repos/kiwicom/mobile/stargazers","contributors_url":"https://api.github.com/repos/kiwicom/mobile/contributors","subscribers_url":"https://api.github.com/repos/kiwicom/mobile/subscribers","subscription_url":"https://api.github.com/repos/kiwicom/mobile/subscription","commits_url":"https://api.github.com/repos/kiwicom/mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiwicom/mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiwicom/mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiwicom/mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiwicom/mobile/contents/{+path}","compare_url":"https://api.github.com/repos/kiwicom/mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiwicom/mobile/merges","archive_url":"https://api.github.com/repos/kiwicom/mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiwicom/mobile/downloads","issues_url":"https://api.github.com/repos/kiwicom/mobile/issues{/number}","pulls_url":"https://api.github.com/repos/kiwicom/mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/kiwicom/mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/kiwicom/mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiwicom/mobile/labels{/name}","releases_url":"https://api.github.com/repos/kiwicom/mobile/releases{/id}","deployments_url":"https://api.github.com/repos/kiwicom/mobile/deployments","created_at":"2017-10-02T23:21:42Z","updated_at":"2018-11-12T10:36:16Z","pushed_at":"2018-11-12T13:03:17Z","git_url":"git://github.com/kiwicom/mobile.git","ssh_url":"git@github.com:kiwicom/mobile.git","clone_url":"https://github.com/kiwicom/mobile.git","svn_url":"https://github.com/kiwicom/mobile","homepage":"https://www.kiwi.com/","size":20256,"stargazers_count":69,"watchers_count":69,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":16,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/1315"},"html":{"href":"https://github.com/kiwicom/mobile/pull/1315"},"issue":{"href":"https://api.github.com/repos/kiwicom/mobile/issues/1315"},"comments":{"href":"https://api.github.com/repos/kiwicom/mobile/issues/1315/comments"},"review_comments":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/1315/comments"},"review_comment":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiwicom/mobile/pulls/1315/commits"},"statuses":{"href":"https://api.github.com/repos/kiwicom/mobile/statuses/c9529dfa18c868223b47fd99e071cce1cc12c554"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"RobinCsl"}}