{"action":"created","comment":{"url":"https://api.github.com/repos/codefordenver/encorelink/pulls/comments/94159265","pull_request_review_id":14690359,"id":94159265,"diff_hunk":"@@ -32,7 +32,57 @@ We use Redux to ensure state transitions are understandable. This happens by man\n ###State Transition Example\n Let's walk through an example of the first step of our primary use case: an Organizer registering on the Landing page and going to the CreateEvent page.\n We suggest that you have the app installed on your machine as described on the [README](README.md), and run through the app with your dev tools window open,\n-so you can verify for yourself what's going on.\n+so you can verify for yourself what's going on. [TBC]\n \n+##Quick Tips\n+Here are a few tips on how to accomplish specific goals\n \n+###Conditional Hard-Coded Links\n+Say you want a peice of text in the UI to be a link to another page, but which page is linked is dependent on some application state.\n+For example, the username in the header is a link to the user's profile page, but the logged in user could be an organizer or a volunteer,\n+so we don't know which page to link to. You need to access the props to find out the state. This assumes you already have the props defined,\n+and you just need to access it.\n \n+1. in your container, import the prop from the proper reducer\n+```JavaScript\n+import { isLoggedIn, getUser, isMusician } from '../reducers/userReducer';\n+```\n+\n+2. make sure your container maps the proper state to your prop\n+```JavaScript\n+const mapStateToProps = (state) => {\n+  return {\n+    isLoggedIn: isLoggedIn(state),\n+    user: getUser(state),","path":"DEVDOCS.md","position":26,"original_position":26,"commit_id":"d4bc2fb5ab15b598d1344a417429d61d7eddab2c","original_commit_id":"d4bc2fb5ab15b598d1344a417429d61d7eddab2c","user":{"login":"wdoug","id":5432102,"avatar_url":"https://avatars.githubusercontent.com/u/5432102?v=3","gravatar_id":"","url":"https://api.github.com/users/wdoug","html_url":"https://github.com/wdoug","followers_url":"https://api.github.com/users/wdoug/followers","following_url":"https://api.github.com/users/wdoug/following{/other_user}","gists_url":"https://api.github.com/users/wdoug/gists{/gist_id}","starred_url":"https://api.github.com/users/wdoug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdoug/subscriptions","organizations_url":"https://api.github.com/users/wdoug/orgs","repos_url":"https://api.github.com/users/wdoug/repos","events_url":"https://api.github.com/users/wdoug/events{/privacy}","received_events_url":"https://api.github.com/users/wdoug/received_events","type":"User","site_admin":false},"body":"For documentation purposes, we should probably leave out unnecessary info (e.g. `isLoggedIn` and `user` here)","created_at":"2016-12-29T17:25:06Z","updated_at":"2016-12-29T17:27:46Z","html_url":"https://github.com/codefordenver/encorelink/pull/224#discussion_r94159265","pull_request_url":"https://api.github.com/repos/codefordenver/encorelink/pulls/224","_links":{"self":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/comments/94159265"},"html":{"href":"https://github.com/codefordenver/encorelink/pull/224#discussion_r94159265"},"pull_request":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/224"}}},"pull_request":{"url":"https://api.github.com/repos/codefordenver/encorelink/pulls/224","id":99672978,"html_url":"https://github.com/codefordenver/encorelink/pull/224","diff_url":"https://github.com/codefordenver/encorelink/pull/224.diff","patch_url":"https://github.com/codefordenver/encorelink/pull/224.patch","issue_url":"https://api.github.com/repos/codefordenver/encorelink/issues/224","number":224,"state":"open","locked":false,"title":"documented how to create conditional links","user":{"login":"darrenrichmond","id":18622286,"avatar_url":"https://avatars.githubusercontent.com/u/18622286?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenrichmond","html_url":"https://github.com/darrenrichmond","followers_url":"https://api.github.com/users/darrenrichmond/followers","following_url":"https://api.github.com/users/darrenrichmond/following{/other_user}","gists_url":"https://api.github.com/users/darrenrichmond/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenrichmond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenrichmond/subscriptions","organizations_url":"https://api.github.com/users/darrenrichmond/orgs","repos_url":"https://api.github.com/users/darrenrichmond/repos","events_url":"https://api.github.com/users/darrenrichmond/events{/privacy}","received_events_url":"https://api.github.com/users/darrenrichmond/received_events","type":"User","site_admin":false},"body":"This PR closes #[insert associated issue number here]\r\n\r\n#### What does this PR do?\r\ndoc how to create conditional links (like issue 171)\r\n\r\n#### How does this PR make you feel? [:link:](http://giphy.com/categories/emotions/)\r\n\r\nhttp://i.giphy.com/l46Cl6JOKu0fbiR3O.gif","created_at":"2016-12-29T16:22:08Z","updated_at":"2016-12-29T17:27:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da9d504cbd407bf5625fb5727fc70376fd695b80","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codefordenver/encorelink/pulls/224/commits","review_comments_url":"https://api.github.com/repos/codefordenver/encorelink/pulls/224/comments","review_comment_url":"https://api.github.com/repos/codefordenver/encorelink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefordenver/encorelink/issues/224/comments","statuses_url":"https://api.github.com/repos/codefordenver/encorelink/statuses/d4bc2fb5ab15b598d1344a417429d61d7eddab2c","head":{"label":"codefordenver:doc_conditional_links","ref":"doc_conditional_links","sha":"d4bc2fb5ab15b598d1344a417429d61d7eddab2c","user":{"login":"codefordenver","id":7472092,"avatar_url":"https://avatars.githubusercontent.com/u/7472092?v=3","gravatar_id":"","url":"https://api.github.com/users/codefordenver","html_url":"https://github.com/codefordenver","followers_url":"https://api.github.com/users/codefordenver/followers","following_url":"https://api.github.com/users/codefordenver/following{/other_user}","gists_url":"https://api.github.com/users/codefordenver/gists{/gist_id}","starred_url":"https://api.github.com/users/codefordenver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefordenver/subscriptions","organizations_url":"https://api.github.com/users/codefordenver/orgs","repos_url":"https://api.github.com/users/codefordenver/repos","events_url":"https://api.github.com/users/codefordenver/events{/privacy}","received_events_url":"https://api.github.com/users/codefordenver/received_events","type":"Organization","site_admin":false},"repo":{"id":57932200,"name":"encorelink","full_name":"codefordenver/encorelink","owner":{"login":"codefordenver","id":7472092,"avatar_url":"https://avatars.githubusercontent.com/u/7472092?v=3","gravatar_id":"","url":"https://api.github.com/users/codefordenver","html_url":"https://github.com/codefordenver","followers_url":"https://api.github.com/users/codefordenver/followers","following_url":"https://api.github.com/users/codefordenver/following{/other_user}","gists_url":"https://api.github.com/users/codefordenver/gists{/gist_id}","starred_url":"https://api.github.com/users/codefordenver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefordenver/subscriptions","organizations_url":"https://api.github.com/users/codefordenver/orgs","repos_url":"https://api.github.com/users/codefordenver/repos","events_url":"https://api.github.com/users/codefordenver/events{/privacy}","received_events_url":"https://api.github.com/users/codefordenver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefordenver/encorelink","description":"Connecting musician volunteers with healthcare centers","fork":false,"url":"https://api.github.com/repos/codefordenver/encorelink","forks_url":"https://api.github.com/repos/codefordenver/encorelink/forks","keys_url":"https://api.github.com/repos/codefordenver/encorelink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefordenver/encorelink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefordenver/encorelink/teams","hooks_url":"https://api.github.com/repos/codefordenver/encorelink/hooks","issue_events_url":"https://api.github.com/repos/codefordenver/encorelink/issues/events{/number}","events_url":"https://api.github.com/repos/codefordenver/encorelink/events","assignees_url":"https://api.github.com/repos/codefordenver/encorelink/assignees{/user}","branches_url":"https://api.github.com/repos/codefordenver/encorelink/branches{/branch}","tags_url":"https://api.github.com/repos/codefordenver/encorelink/tags","blobs_url":"https://api.github.com/repos/codefordenver/encorelink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefordenver/encorelink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefordenver/encorelink/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefordenver/encorelink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefordenver/encorelink/statuses/{sha}","languages_url":"https://api.github.com/repos/codefordenver/encorelink/languages","stargazers_url":"https://api.github.com/repos/codefordenver/encorelink/stargazers","contributors_url":"https://api.github.com/repos/codefordenver/encorelink/contributors","subscribers_url":"https://api.github.com/repos/codefordenver/encorelink/subscribers","subscription_url":"https://api.github.com/repos/codefordenver/encorelink/subscription","commits_url":"https://api.github.com/repos/codefordenver/encorelink/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefordenver/encorelink/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefordenver/encorelink/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefordenver/encorelink/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefordenver/encorelink/contents/{+path}","compare_url":"https://api.github.com/repos/codefordenver/encorelink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefordenver/encorelink/merges","archive_url":"https://api.github.com/repos/codefordenver/encorelink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefordenver/encorelink/downloads","issues_url":"https://api.github.com/repos/codefordenver/encorelink/issues{/number}","pulls_url":"https://api.github.com/repos/codefordenver/encorelink/pulls{/number}","milestones_url":"https://api.github.com/repos/codefordenver/encorelink/milestones{/number}","notifications_url":"https://api.github.com/repos/codefordenver/encorelink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefordenver/encorelink/labels{/name}","releases_url":"https://api.github.com/repos/codefordenver/encorelink/releases{/id}","deployments_url":"https://api.github.com/repos/codefordenver/encorelink/deployments","created_at":"2016-05-03T01:24:04Z","updated_at":"2016-12-18T19:07:54Z","pushed_at":"2016-12-29T17:25:38Z","git_url":"git://github.com/codefordenver/encorelink.git","ssh_url":"git@github.com:codefordenver/encorelink.git","clone_url":"https://github.com/codefordenver/encorelink.git","svn_url":"https://github.com/codefordenver/encorelink","homepage":"https://encorelink.herokuapp.com/","size":14549,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":51,"forks":7,"open_issues":51,"watchers":4,"default_branch":"master"}},"base":{"label":"codefordenver:master","ref":"master","sha":"5fb2e010c2d425a1e3a2b829451d65110c09274a","user":{"login":"codefordenver","id":7472092,"avatar_url":"https://avatars.githubusercontent.com/u/7472092?v=3","gravatar_id":"","url":"https://api.github.com/users/codefordenver","html_url":"https://github.com/codefordenver","followers_url":"https://api.github.com/users/codefordenver/followers","following_url":"https://api.github.com/users/codefordenver/following{/other_user}","gists_url":"https://api.github.com/users/codefordenver/gists{/gist_id}","starred_url":"https://api.github.com/users/codefordenver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefordenver/subscriptions","organizations_url":"https://api.github.com/users/codefordenver/orgs","repos_url":"https://api.github.com/users/codefordenver/repos","events_url":"https://api.github.com/users/codefordenver/events{/privacy}","received_events_url":"https://api.github.com/users/codefordenver/received_events","type":"Organization","site_admin":false},"repo":{"id":57932200,"name":"encorelink","full_name":"codefordenver/encorelink","owner":{"login":"codefordenver","id":7472092,"avatar_url":"https://avatars.githubusercontent.com/u/7472092?v=3","gravatar_id":"","url":"https://api.github.com/users/codefordenver","html_url":"https://github.com/codefordenver","followers_url":"https://api.github.com/users/codefordenver/followers","following_url":"https://api.github.com/users/codefordenver/following{/other_user}","gists_url":"https://api.github.com/users/codefordenver/gists{/gist_id}","starred_url":"https://api.github.com/users/codefordenver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefordenver/subscriptions","organizations_url":"https://api.github.com/users/codefordenver/orgs","repos_url":"https://api.github.com/users/codefordenver/repos","events_url":"https://api.github.com/users/codefordenver/events{/privacy}","received_events_url":"https://api.github.com/users/codefordenver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefordenver/encorelink","description":"Connecting musician volunteers with healthcare centers","fork":false,"url":"https://api.github.com/repos/codefordenver/encorelink","forks_url":"https://api.github.com/repos/codefordenver/encorelink/forks","keys_url":"https://api.github.com/repos/codefordenver/encorelink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefordenver/encorelink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefordenver/encorelink/teams","hooks_url":"https://api.github.com/repos/codefordenver/encorelink/hooks","issue_events_url":"https://api.github.com/repos/codefordenver/encorelink/issues/events{/number}","events_url":"https://api.github.com/repos/codefordenver/encorelink/events","assignees_url":"https://api.github.com/repos/codefordenver/encorelink/assignees{/user}","branches_url":"https://api.github.com/repos/codefordenver/encorelink/branches{/branch}","tags_url":"https://api.github.com/repos/codefordenver/encorelink/tags","blobs_url":"https://api.github.com/repos/codefordenver/encorelink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefordenver/encorelink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefordenver/encorelink/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefordenver/encorelink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefordenver/encorelink/statuses/{sha}","languages_url":"https://api.github.com/repos/codefordenver/encorelink/languages","stargazers_url":"https://api.github.com/repos/codefordenver/encorelink/stargazers","contributors_url":"https://api.github.com/repos/codefordenver/encorelink/contributors","subscribers_url":"https://api.github.com/repos/codefordenver/encorelink/subscribers","subscription_url":"https://api.github.com/repos/codefordenver/encorelink/subscription","commits_url":"https://api.github.com/repos/codefordenver/encorelink/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefordenver/encorelink/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefordenver/encorelink/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefordenver/encorelink/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefordenver/encorelink/contents/{+path}","compare_url":"https://api.github.com/repos/codefordenver/encorelink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefordenver/encorelink/merges","archive_url":"https://api.github.com/repos/codefordenver/encorelink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefordenver/encorelink/downloads","issues_url":"https://api.github.com/repos/codefordenver/encorelink/issues{/number}","pulls_url":"https://api.github.com/repos/codefordenver/encorelink/pulls{/number}","milestones_url":"https://api.github.com/repos/codefordenver/encorelink/milestones{/number}","notifications_url":"https://api.github.com/repos/codefordenver/encorelink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefordenver/encorelink/labels{/name}","releases_url":"https://api.github.com/repos/codefordenver/encorelink/releases{/id}","deployments_url":"https://api.github.com/repos/codefordenver/encorelink/deployments","created_at":"2016-05-03T01:24:04Z","updated_at":"2016-12-18T19:07:54Z","pushed_at":"2016-12-29T17:25:38Z","git_url":"git://github.com/codefordenver/encorelink.git","ssh_url":"git@github.com:codefordenver/encorelink.git","clone_url":"https://github.com/codefordenver/encorelink.git","svn_url":"https://github.com/codefordenver/encorelink","homepage":"https://encorelink.herokuapp.com/","size":14549,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":51,"forks":7,"open_issues":51,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/224"},"html":{"href":"https://github.com/codefordenver/encorelink/pull/224"},"issue":{"href":"https://api.github.com/repos/codefordenver/encorelink/issues/224"},"comments":{"href":"https://api.github.com/repos/codefordenver/encorelink/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefordenver/encorelink/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/codefordenver/encorelink/statuses/d4bc2fb5ab15b598d1344a417429d61d7eddab2c"}}}}
{"actor":{"display_login":"wdoug"}}