{"action":"created","comment":{"url":"https://api.github.com/repos/teencode-org/teencode/pulls/comments/115625826","pull_request_review_id":37177644,"id":115625826,"diff_hunk":"@@ -0,0 +1,28 @@\n+/*global SEGMENT_KEY:true*/\n+\n+import React, { PropTypes } from 'react';\n+import Header from './common/Header';\n+import Footer from './common/Footer';\n+import toastr from 'toastr';\n+\n+class Pages extends React.Component {\n+  componentWillMount() {\n+    toastr.options.positionClass = \"toast-nav-top-right\";\n+  }\n+\n+  render () {\n+    return (\n+      <div>\n+        <Header />\n+        {this.props.children}\n+        <Footer />\n+      </div>\n+    )\n+  }\n+}\n+\n+Pages.propTypes = {\n+  children: PropTypes.object.isRequired\n+}","path":"src/js/components/Pages.js","position":26,"original_position":26,"commit_id":"1dfd870f29d0e3cb5797e147586fccf1bf6d9d95","original_commit_id":"342767b913cc0b5c7ee663b522fb8f5be34e8592","user":{"login":"andela-iamadi","id":12391897,"avatar_url":"https://avatars0.githubusercontent.com/u/12391897?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-iamadi","html_url":"https://github.com/andela-iamadi","followers_url":"https://api.github.com/users/andela-iamadi/followers","following_url":"https://api.github.com/users/andela-iamadi/following{/other_user}","gists_url":"https://api.github.com/users/andela-iamadi/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-iamadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-iamadi/subscriptions","organizations_url":"https://api.github.com/users/andela-iamadi/orgs","repos_url":"https://api.github.com/users/andela-iamadi/repos","events_url":"https://api.github.com/users/andela-iamadi/events{/privacy}","received_events_url":"https://api.github.com/users/andela-iamadi/received_events","type":"User","site_admin":false},"body":"Proptype validation 👍 \r\nRemind me to move us over to Facebook's Flow for prop validation instead of `React.PropTypes`","created_at":"2017-05-09T23:29:17Z","updated_at":"2017-05-09T23:41:58Z","html_url":"https://github.com/teencode-org/teencode/pull/33#discussion_r115625826","pull_request_url":"https://api.github.com/repos/teencode-org/teencode/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/comments/115625826"},"html":{"href":"https://github.com/teencode-org/teencode/pull/33#discussion_r115625826"},"pull_request":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/teencode-org/teencode/pulls/33","id":119673682,"html_url":"https://github.com/teencode-org/teencode/pull/33","diff_url":"https://github.com/teencode-org/teencode/pull/33.diff","patch_url":"https://github.com/teencode-org/teencode/pull/33.patch","issue_url":"https://api.github.com/repos/teencode-org/teencode/issues/33","number":33,"state":"open","locked":false,"title":"Implement redux and call curriculum endpoint","user":{"login":"andela-cnwosu","id":20643330,"avatar_url":"https://avatars3.githubusercontent.com/u/20643330?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-cnwosu","html_url":"https://github.com/andela-cnwosu","followers_url":"https://api.github.com/users/andela-cnwosu/followers","following_url":"https://api.github.com/users/andela-cnwosu/following{/other_user}","gists_url":"https://api.github.com/users/andela-cnwosu/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-cnwosu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-cnwosu/subscriptions","organizations_url":"https://api.github.com/users/andela-cnwosu/orgs","repos_url":"https://api.github.com/users/andela-cnwosu/repos","events_url":"https://api.github.com/users/andela-cnwosu/events{/privacy}","received_events_url":"https://api.github.com/users/andela-cnwosu/received_events","type":"User","site_admin":false},"body":"This PR:\r\n* Makes an api to the curriculum_sessions endpoint to show curriculum content.\r\n* implements react redux.\r\n* replaces the application, contact us and curriculum actions with redux actions.\r\n* handles all errors in one redux error state, thereby showing toast messages when the error state gets updated.\r\n* creates a loading component.\r\n* creates an empty page component.\r\n\r\n_Curriculum with backend content_\r\n<img width=\"1680\" alt=\"screen shot 2017-05-09 at 12 51 54 pm\" src=\"https://cloud.githubusercontent.com/assets/20643330/25855679/d157d1f8-34cb-11e7-830e-5c8dfcaaa454.png\">\r\n\r\n_When there is no curriculum_\r\n<img width=\"1680\" alt=\"screen shot 2017-05-09 at 12 50 41 pm\" src=\"https://cloud.githubusercontent.com/assets/20643330/25855942/7ef97b9a-34cc-11e7-96e7-9afade253701.png\">\r\n\r\n_Loading component while making an API call_\r\n<img width=\"1680\" alt=\"screen shot 2017-05-09 at 12 58 30 pm\" src=\"https://cloud.githubusercontent.com/assets/20643330/25855677/d1549bdc-34cb-11e7-9715-ad868cbf55cf.png\">\r\n","created_at":"2017-05-09T14:32:34Z","updated_at":"2017-05-09T23:41:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa704005e31a7a8396b7f830e0fdee96f1005ea9","assignee":null,"assignees":[],"requested_reviewers":[{"login":"andela-tpeters","id":8160705,"avatar_url":"https://avatars3.githubusercontent.com/u/8160705?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tpeters","html_url":"https://github.com/andela-tpeters","followers_url":"https://api.github.com/users/andela-tpeters/followers","following_url":"https://api.github.com/users/andela-tpeters/following{/other_user}","gists_url":"https://api.github.com/users/andela-tpeters/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tpeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tpeters/subscriptions","organizations_url":"https://api.github.com/users/andela-tpeters/orgs","repos_url":"https://api.github.com/users/andela-tpeters/repos","events_url":"https://api.github.com/users/andela-tpeters/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tpeters/received_events","type":"User","site_admin":false},{"login":"michael-alade","id":16742431,"avatar_url":"https://avatars2.githubusercontent.com/u/16742431?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-alade","html_url":"https://github.com/michael-alade","followers_url":"https://api.github.com/users/michael-alade/followers","following_url":"https://api.github.com/users/michael-alade/following{/other_user}","gists_url":"https://api.github.com/users/michael-alade/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-alade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-alade/subscriptions","organizations_url":"https://api.github.com/users/michael-alade/orgs","repos_url":"https://api.github.com/users/michael-alade/repos","events_url":"https://api.github.com/users/michael-alade/events{/privacy}","received_events_url":"https://api.github.com/users/michael-alade/received_events","type":"User","site_admin":false},{"login":"andela-morekoya","id":20647322,"avatar_url":"https://avatars0.githubusercontent.com/u/20647322?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-morekoya","html_url":"https://github.com/andela-morekoya","followers_url":"https://api.github.com/users/andela-morekoya/followers","following_url":"https://api.github.com/users/andela-morekoya/following{/other_user}","gists_url":"https://api.github.com/users/andela-morekoya/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-morekoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-morekoya/subscriptions","organizations_url":"https://api.github.com/users/andela-morekoya/orgs","repos_url":"https://api.github.com/users/andela-morekoya/repos","events_url":"https://api.github.com/users/andela-morekoya/events{/privacy}","received_events_url":"https://api.github.com/users/andela-morekoya/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/teencode-org/teencode/pulls/33/commits","review_comments_url":"https://api.github.com/repos/teencode-org/teencode/pulls/33/comments","review_comment_url":"https://api.github.com/repos/teencode-org/teencode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teencode-org/teencode/issues/33/comments","statuses_url":"https://api.github.com/repos/teencode-org/teencode/statuses/1dfd870f29d0e3cb5797e147586fccf1bf6d9d95","head":{"label":"teencode-org:ch-implement-redux-142915151","ref":"ch-implement-redux-142915151","sha":"1dfd870f29d0e3cb5797e147586fccf1bf6d9d95","user":{"login":"teencode-org","id":26228536,"avatar_url":"https://avatars0.githubusercontent.com/u/26228536?v=3","gravatar_id":"","url":"https://api.github.com/users/teencode-org","html_url":"https://github.com/teencode-org","followers_url":"https://api.github.com/users/teencode-org/followers","following_url":"https://api.github.com/users/teencode-org/following{/other_user}","gists_url":"https://api.github.com/users/teencode-org/gists{/gist_id}","starred_url":"https://api.github.com/users/teencode-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teencode-org/subscriptions","organizations_url":"https://api.github.com/users/teencode-org/orgs","repos_url":"https://api.github.com/users/teencode-org/repos","events_url":"https://api.github.com/users/teencode-org/events{/privacy}","received_events_url":"https://api.github.com/users/teencode-org/received_events","type":"Organization","site_admin":false},"repo":{"id":84096142,"name":"teencode","full_name":"teencode-org/teencode","owner":{"login":"teencode-org","id":26228536,"avatar_url":"https://avatars0.githubusercontent.com/u/26228536?v=3","gravatar_id":"","url":"https://api.github.com/users/teencode-org","html_url":"https://github.com/teencode-org","followers_url":"https://api.github.com/users/teencode-org/followers","following_url":"https://api.github.com/users/teencode-org/following{/other_user}","gists_url":"https://api.github.com/users/teencode-org/gists{/gist_id}","starred_url":"https://api.github.com/users/teencode-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teencode-org/subscriptions","organizations_url":"https://api.github.com/users/teencode-org/orgs","repos_url":"https://api.github.com/users/teencode-org/repos","events_url":"https://api.github.com/users/teencode-org/events{/privacy}","received_events_url":"https://api.github.com/users/teencode-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teencode-org/teencode","description":"Official site of #teencode program","fork":false,"url":"https://api.github.com/repos/teencode-org/teencode","forks_url":"https://api.github.com/repos/teencode-org/teencode/forks","keys_url":"https://api.github.com/repos/teencode-org/teencode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teencode-org/teencode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teencode-org/teencode/teams","hooks_url":"https://api.github.com/repos/teencode-org/teencode/hooks","issue_events_url":"https://api.github.com/repos/teencode-org/teencode/issues/events{/number}","events_url":"https://api.github.com/repos/teencode-org/teencode/events","assignees_url":"https://api.github.com/repos/teencode-org/teencode/assignees{/user}","branches_url":"https://api.github.com/repos/teencode-org/teencode/branches{/branch}","tags_url":"https://api.github.com/repos/teencode-org/teencode/tags","blobs_url":"https://api.github.com/repos/teencode-org/teencode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teencode-org/teencode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teencode-org/teencode/git/refs{/sha}","trees_url":"https://api.github.com/repos/teencode-org/teencode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teencode-org/teencode/statuses/{sha}","languages_url":"https://api.github.com/repos/teencode-org/teencode/languages","stargazers_url":"https://api.github.com/repos/teencode-org/teencode/stargazers","contributors_url":"https://api.github.com/repos/teencode-org/teencode/contributors","subscribers_url":"https://api.github.com/repos/teencode-org/teencode/subscribers","subscription_url":"https://api.github.com/repos/teencode-org/teencode/subscription","commits_url":"https://api.github.com/repos/teencode-org/teencode/commits{/sha}","git_commits_url":"https://api.github.com/repos/teencode-org/teencode/git/commits{/sha}","comments_url":"https://api.github.com/repos/teencode-org/teencode/comments{/number}","issue_comment_url":"https://api.github.com/repos/teencode-org/teencode/issues/comments{/number}","contents_url":"https://api.github.com/repos/teencode-org/teencode/contents/{+path}","compare_url":"https://api.github.com/repos/teencode-org/teencode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teencode-org/teencode/merges","archive_url":"https://api.github.com/repos/teencode-org/teencode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teencode-org/teencode/downloads","issues_url":"https://api.github.com/repos/teencode-org/teencode/issues{/number}","pulls_url":"https://api.github.com/repos/teencode-org/teencode/pulls{/number}","milestones_url":"https://api.github.com/repos/teencode-org/teencode/milestones{/number}","notifications_url":"https://api.github.com/repos/teencode-org/teencode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teencode-org/teencode/labels{/name}","releases_url":"https://api.github.com/repos/teencode-org/teencode/releases{/id}","deployments_url":"https://api.github.com/repos/teencode-org/teencode/deployments","created_at":"2017-03-06T16:35:37Z","updated_at":"2017-03-09T14:19:16Z","pushed_at":"2017-05-09T22:57:56Z","git_url":"git://github.com/teencode-org/teencode.git","ssh_url":"git@github.com:teencode-org/teencode.git","clone_url":"https://github.com/teencode-org/teencode.git","svn_url":"https://github.com/teencode-org/teencode","homepage":null,"size":22669,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":2,"default_branch":"develop"}},"base":{"label":"teencode-org:develop","ref":"develop","sha":"10ccbf44f68f4acbcf5adc13f2b8b31ae7ad0643","user":{"login":"teencode-org","id":26228536,"avatar_url":"https://avatars0.githubusercontent.com/u/26228536?v=3","gravatar_id":"","url":"https://api.github.com/users/teencode-org","html_url":"https://github.com/teencode-org","followers_url":"https://api.github.com/users/teencode-org/followers","following_url":"https://api.github.com/users/teencode-org/following{/other_user}","gists_url":"https://api.github.com/users/teencode-org/gists{/gist_id}","starred_url":"https://api.github.com/users/teencode-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teencode-org/subscriptions","organizations_url":"https://api.github.com/users/teencode-org/orgs","repos_url":"https://api.github.com/users/teencode-org/repos","events_url":"https://api.github.com/users/teencode-org/events{/privacy}","received_events_url":"https://api.github.com/users/teencode-org/received_events","type":"Organization","site_admin":false},"repo":{"id":84096142,"name":"teencode","full_name":"teencode-org/teencode","owner":{"login":"teencode-org","id":26228536,"avatar_url":"https://avatars0.githubusercontent.com/u/26228536?v=3","gravatar_id":"","url":"https://api.github.com/users/teencode-org","html_url":"https://github.com/teencode-org","followers_url":"https://api.github.com/users/teencode-org/followers","following_url":"https://api.github.com/users/teencode-org/following{/other_user}","gists_url":"https://api.github.com/users/teencode-org/gists{/gist_id}","starred_url":"https://api.github.com/users/teencode-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teencode-org/subscriptions","organizations_url":"https://api.github.com/users/teencode-org/orgs","repos_url":"https://api.github.com/users/teencode-org/repos","events_url":"https://api.github.com/users/teencode-org/events{/privacy}","received_events_url":"https://api.github.com/users/teencode-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teencode-org/teencode","description":"Official site of #teencode program","fork":false,"url":"https://api.github.com/repos/teencode-org/teencode","forks_url":"https://api.github.com/repos/teencode-org/teencode/forks","keys_url":"https://api.github.com/repos/teencode-org/teencode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teencode-org/teencode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teencode-org/teencode/teams","hooks_url":"https://api.github.com/repos/teencode-org/teencode/hooks","issue_events_url":"https://api.github.com/repos/teencode-org/teencode/issues/events{/number}","events_url":"https://api.github.com/repos/teencode-org/teencode/events","assignees_url":"https://api.github.com/repos/teencode-org/teencode/assignees{/user}","branches_url":"https://api.github.com/repos/teencode-org/teencode/branches{/branch}","tags_url":"https://api.github.com/repos/teencode-org/teencode/tags","blobs_url":"https://api.github.com/repos/teencode-org/teencode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teencode-org/teencode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teencode-org/teencode/git/refs{/sha}","trees_url":"https://api.github.com/repos/teencode-org/teencode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teencode-org/teencode/statuses/{sha}","languages_url":"https://api.github.com/repos/teencode-org/teencode/languages","stargazers_url":"https://api.github.com/repos/teencode-org/teencode/stargazers","contributors_url":"https://api.github.com/repos/teencode-org/teencode/contributors","subscribers_url":"https://api.github.com/repos/teencode-org/teencode/subscribers","subscription_url":"https://api.github.com/repos/teencode-org/teencode/subscription","commits_url":"https://api.github.com/repos/teencode-org/teencode/commits{/sha}","git_commits_url":"https://api.github.com/repos/teencode-org/teencode/git/commits{/sha}","comments_url":"https://api.github.com/repos/teencode-org/teencode/comments{/number}","issue_comment_url":"https://api.github.com/repos/teencode-org/teencode/issues/comments{/number}","contents_url":"https://api.github.com/repos/teencode-org/teencode/contents/{+path}","compare_url":"https://api.github.com/repos/teencode-org/teencode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teencode-org/teencode/merges","archive_url":"https://api.github.com/repos/teencode-org/teencode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teencode-org/teencode/downloads","issues_url":"https://api.github.com/repos/teencode-org/teencode/issues{/number}","pulls_url":"https://api.github.com/repos/teencode-org/teencode/pulls{/number}","milestones_url":"https://api.github.com/repos/teencode-org/teencode/milestones{/number}","notifications_url":"https://api.github.com/repos/teencode-org/teencode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teencode-org/teencode/labels{/name}","releases_url":"https://api.github.com/repos/teencode-org/teencode/releases{/id}","deployments_url":"https://api.github.com/repos/teencode-org/teencode/deployments","created_at":"2017-03-06T16:35:37Z","updated_at":"2017-03-09T14:19:16Z","pushed_at":"2017-05-09T22:57:56Z","git_url":"git://github.com/teencode-org/teencode.git","ssh_url":"git@github.com:teencode-org/teencode.git","clone_url":"https://github.com/teencode-org/teencode.git","svn_url":"https://github.com/teencode-org/teencode","homepage":null,"size":22669,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/33"},"html":{"href":"https://github.com/teencode-org/teencode/pull/33"},"issue":{"href":"https://api.github.com/repos/teencode-org/teencode/issues/33"},"comments":{"href":"https://api.github.com/repos/teencode-org/teencode/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teencode-org/teencode/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/teencode-org/teencode/statuses/1dfd870f29d0e3cb5797e147586fccf1bf6d9d95"}}}}
{"actor":{"display_login":"andela-iamadi"}}