{"action":"created","comment":{"url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/comments/216204526","pull_request_review_id":153630529,"id":216204526,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjIwNDUyNg==","diff_hunk":"@@ -0,0 +1,45 @@\n+import React, {Component} from 'react';\n+import {ShopItem} from './shop_item';\n+import {Logout} from './../components/shared/logout';\n+import {Orders} from './../components/shared/orders_button.js';\n+\n+\n+export class User extends Component {\n+  render() {\n+    const items = this.props.items;\n+    const inCart = this.props.cart;\n+    const returnListOfItems = (items) => {\n+      return items.map((item ) => {\n+        let inBasket = false;\n+        if(inCart.indexOf(item.id) !== -1){\n+          inBasket = true;\n+        }\n+        const addItemToCart = () => {\n+          this.props.addItemToCart(item.id);\n+        }\n+        return <ShopItem key={item.id} item={item} inBasket={inBasket} addItemToCart={addItemToCart} ></ShopItem>\n+      });\n+    }\n+    return (\n+        <div className=\"container\">\n+          <h1>USER PAGE</h1>\n+          <div className=\"row\">\n+            <div className=\"col-8\">\n+              <div className=\"row\">\n+                {returnListOfItems(items)}\n+              </div>\n+            </div>\n+            <div className=\"col-4\">\n+              <div>\n+                User\n+              </div>\n+                <Orders changePageToCartPage={this.props.changePageToCartPage} ></Orders>","path":"lesson-2/web-store/src/pages/user_page.js","position":36,"original_position":36,"commit_id":"46ee38ba2be899938f907c473e1b6a978a3e8942","original_commit_id":"46ee38ba2be899938f907c473e1b6a978a3e8942","user":{"login":"OlegLustenko","id":11524061,"node_id":"MDQ6VXNlcjExNTI0MDYx","avatar_url":"https://avatars2.githubusercontent.com/u/11524061?v=4","gravatar_id":"","url":"https://api.github.com/users/OlegLustenko","html_url":"https://github.com/OlegLustenko","followers_url":"https://api.github.com/users/OlegLustenko/followers","following_url":"https://api.github.com/users/OlegLustenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegLustenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegLustenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegLustenko/subscriptions","organizations_url":"https://api.github.com/users/OlegLustenko/orgs","repos_url":"https://api.github.com/users/OlegLustenko/repos","events_url":"https://api.github.com/users/OlegLustenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegLustenko/received_events","type":"User","site_admin":false},"body":"shorthand notation for components\r\nand extract all props via object destruction","created_at":"2018-09-10T05:54:30Z","updated_at":"2018-09-10T05:54:42Z","html_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1#discussion_r216204526","pull_request_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/comments/216204526"},"html":{"href":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1#discussion_r216204526"},"pull_request":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1","id":212591405,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNTkxNDA1","html_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1","diff_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1.diff","patch_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1.patch","issue_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/1","number":1,"state":"open","locked":false,"title":"Classwork 2","user":{"login":"maxeasy18","id":40337506,"node_id":"MDQ6VXNlcjQwMzM3NTA2","avatar_url":"https://avatars3.githubusercontent.com/u/40337506?v=4","gravatar_id":"","url":"https://api.github.com/users/maxeasy18","html_url":"https://github.com/maxeasy18","followers_url":"https://api.github.com/users/maxeasy18/followers","following_url":"https://api.github.com/users/maxeasy18/following{/other_user}","gists_url":"https://api.github.com/users/maxeasy18/gists{/gist_id}","starred_url":"https://api.github.com/users/maxeasy18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxeasy18/subscriptions","organizations_url":"https://api.github.com/users/maxeasy18/orgs","repos_url":"https://api.github.com/users/maxeasy18/repos","events_url":"https://api.github.com/users/maxeasy18/events{/privacy}","received_events_url":"https://api.github.com/users/maxeasy18/received_events","type":"User","site_admin":false},"body":"Доделано прилодение из классной работы. Понадобилось много больше чем 4 часа.","created_at":"2018-09-02T12:54:21Z","updated_at":"2018-09-10T05:54:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9906f51696b8677d252a7075c42221694255fac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1/commits","review_comments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1/comments","review_comment_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/1/comments","statuses_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/statuses/46ee38ba2be899938f907c473e1b6a978a3e8942","head":{"label":"easycode-react-08-2018:classwork_2","ref":"classwork_2","sha":"46ee38ba2be899938f907c473e1b6a978a3e8942","user":{"login":"easycode-react-08-2018","id":42762885,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzYyODg1","avatar_url":"https://avatars2.githubusercontent.com/u/42762885?v=4","gravatar_id":"","url":"https://api.github.com/users/easycode-react-08-2018","html_url":"https://github.com/easycode-react-08-2018","followers_url":"https://api.github.com/users/easycode-react-08-2018/followers","following_url":"https://api.github.com/users/easycode-react-08-2018/following{/other_user}","gists_url":"https://api.github.com/users/easycode-react-08-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/easycode-react-08-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easycode-react-08-2018/subscriptions","organizations_url":"https://api.github.com/users/easycode-react-08-2018/orgs","repos_url":"https://api.github.com/users/easycode-react-08-2018/repos","events_url":"https://api.github.com/users/easycode-react-08-2018/events{/privacy}","received_events_url":"https://api.github.com/users/easycode-react-08-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":146472829,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY0NzI4Mjk=","name":"react-course-easycode-maxeasy18","full_name":"easycode-react-08-2018/react-course-easycode-maxeasy18","owner":{"login":"easycode-react-08-2018","id":42762885,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzYyODg1","avatar_url":"https://avatars2.githubusercontent.com/u/42762885?v=4","gravatar_id":"","url":"https://api.github.com/users/easycode-react-08-2018","html_url":"https://github.com/easycode-react-08-2018","followers_url":"https://api.github.com/users/easycode-react-08-2018/followers","following_url":"https://api.github.com/users/easycode-react-08-2018/following{/other_user}","gists_url":"https://api.github.com/users/easycode-react-08-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/easycode-react-08-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easycode-react-08-2018/subscriptions","organizations_url":"https://api.github.com/users/easycode-react-08-2018/orgs","repos_url":"https://api.github.com/users/easycode-react-08-2018/repos","events_url":"https://api.github.com/users/easycode-react-08-2018/events{/privacy}","received_events_url":"https://api.github.com/users/easycode-react-08-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18","description":"react-course-easycode-maxeasy18 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18","forks_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/forks","keys_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/teams","hooks_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/hooks","issue_events_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/events{/number}","events_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/events","assignees_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/assignees{/user}","branches_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/branches{/branch}","tags_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/tags","blobs_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/refs{/sha}","trees_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/statuses/{sha}","languages_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/languages","stargazers_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/stargazers","contributors_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/contributors","subscribers_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/subscribers","subscription_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/subscription","commits_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/commits{/sha}","git_commits_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/commits{/sha}","comments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/comments{/number}","issue_comment_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/comments{/number}","contents_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/contents/{+path}","compare_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/merges","archive_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/downloads","issues_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues{/number}","pulls_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls{/number}","milestones_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/milestones{/number}","notifications_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/labels{/name}","releases_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/releases{/id}","deployments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/deployments","created_at":"2018-08-28T16:03:15Z","updated_at":"2018-08-30T08:29:11Z","pushed_at":"2018-09-09T15:53:15Z","git_url":"git://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18.git","ssh_url":"git@github.com:easycode-react-08-2018/react-course-easycode-maxeasy18.git","clone_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18.git","svn_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18","homepage":null,"size":383,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"easycode-react-08-2018:master","ref":"master","sha":"e510a2e7c49c703d36f00ae8830f309500cba489","user":{"login":"easycode-react-08-2018","id":42762885,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzYyODg1","avatar_url":"https://avatars2.githubusercontent.com/u/42762885?v=4","gravatar_id":"","url":"https://api.github.com/users/easycode-react-08-2018","html_url":"https://github.com/easycode-react-08-2018","followers_url":"https://api.github.com/users/easycode-react-08-2018/followers","following_url":"https://api.github.com/users/easycode-react-08-2018/following{/other_user}","gists_url":"https://api.github.com/users/easycode-react-08-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/easycode-react-08-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easycode-react-08-2018/subscriptions","organizations_url":"https://api.github.com/users/easycode-react-08-2018/orgs","repos_url":"https://api.github.com/users/easycode-react-08-2018/repos","events_url":"https://api.github.com/users/easycode-react-08-2018/events{/privacy}","received_events_url":"https://api.github.com/users/easycode-react-08-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":146472829,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY0NzI4Mjk=","name":"react-course-easycode-maxeasy18","full_name":"easycode-react-08-2018/react-course-easycode-maxeasy18","owner":{"login":"easycode-react-08-2018","id":42762885,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyNzYyODg1","avatar_url":"https://avatars2.githubusercontent.com/u/42762885?v=4","gravatar_id":"","url":"https://api.github.com/users/easycode-react-08-2018","html_url":"https://github.com/easycode-react-08-2018","followers_url":"https://api.github.com/users/easycode-react-08-2018/followers","following_url":"https://api.github.com/users/easycode-react-08-2018/following{/other_user}","gists_url":"https://api.github.com/users/easycode-react-08-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/easycode-react-08-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easycode-react-08-2018/subscriptions","organizations_url":"https://api.github.com/users/easycode-react-08-2018/orgs","repos_url":"https://api.github.com/users/easycode-react-08-2018/repos","events_url":"https://api.github.com/users/easycode-react-08-2018/events{/privacy}","received_events_url":"https://api.github.com/users/easycode-react-08-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18","description":"react-course-easycode-maxeasy18 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18","forks_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/forks","keys_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/teams","hooks_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/hooks","issue_events_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/events{/number}","events_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/events","assignees_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/assignees{/user}","branches_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/branches{/branch}","tags_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/tags","blobs_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/refs{/sha}","trees_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/statuses/{sha}","languages_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/languages","stargazers_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/stargazers","contributors_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/contributors","subscribers_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/subscribers","subscription_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/subscription","commits_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/commits{/sha}","git_commits_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/git/commits{/sha}","comments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/comments{/number}","issue_comment_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/comments{/number}","contents_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/contents/{+path}","compare_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/merges","archive_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/downloads","issues_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues{/number}","pulls_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls{/number}","milestones_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/milestones{/number}","notifications_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/labels{/name}","releases_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/releases{/id}","deployments_url":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/deployments","created_at":"2018-08-28T16:03:15Z","updated_at":"2018-08-30T08:29:11Z","pushed_at":"2018-09-09T15:53:15Z","git_url":"git://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18.git","ssh_url":"git@github.com:easycode-react-08-2018/react-course-easycode-maxeasy18.git","clone_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18.git","svn_url":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18","homepage":null,"size":383,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1"},"html":{"href":"https://github.com/easycode-react-08-2018/react-course-easycode-maxeasy18/pull/1"},"issue":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/1"},"comments":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/easycode-react-08-2018/react-course-easycode-maxeasy18/statuses/46ee38ba2be899938f907c473e1b6a978a3e8942"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"OlegLustenko"}}