{"action":"created","comment":{"url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/comments/69517448","id":69517448,"diff_hunk":"@@ -340,18 +340,20 @@ export default class Surah extends Component {\n   }\n \n   renderLines() {\n-    const { lines, options } = this.props;\n+    const { lines, options, ayahs } = this.props;\n     const keys = Object.keys(lines);\n+    const ayahsKeys = Object.keys(ayahs);\n \n     return keys.map((lineNum, index) => {\n       const nextNum = keys[index + 1];\n       const pageNum = lineNum.split('-')[0];\n       const line = lines[lineNum];\n+      const lastAyahInfo = ayahs[ayahsKeys[ayahsKeys.length - 1]]; // last ayah","path":"src/containers/Surah/index.js","position":13,"original_position":13,"commit_id":"aed5a483a96e8fdbd9607e90d2c3abab4210cee9","original_commit_id":"aed5a483a96e8fdbd9607e90d2c3abab4210cee9","user":{"login":"sabeurthabti","id":2606228,"avatar_url":"https://avatars.githubusercontent.com/u/2606228?v=3","gravatar_id":"","url":"https://api.github.com/users/sabeurthabti","html_url":"https://github.com/sabeurthabti","followers_url":"https://api.github.com/users/sabeurthabti/followers","following_url":"https://api.github.com/users/sabeurthabti/following{/other_user}","gists_url":"https://api.github.com/users/sabeurthabti/gists{/gist_id}","starred_url":"https://api.github.com/users/sabeurthabti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabeurthabti/subscriptions","organizations_url":"https://api.github.com/users/sabeurthabti/orgs","repos_url":"https://api.github.com/users/sabeurthabti/repos","events_url":"https://api.github.com/users/sabeurthabti/events{/privacy}","received_events_url":"https://api.github.com/users/sabeurthabti/received_events","type":"User","site_admin":false},"body":"Haha that's not good. I can replicate the bug locally, I assumed each block of ayahs will have their own PageBreak. I will investigate an alternative approach.","created_at":"2016-07-05T07:29:41Z","updated_at":"2016-07-05T07:29:41Z","html_url":"https://github.com/quran/quran.com-frontend/pull/379#discussion_r69517448","pull_request_url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379","_links":{"self":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/comments/69517448"},"html":{"href":"https://github.com/quran/quran.com-frontend/pull/379#discussion_r69517448"},"pull_request":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379"}}},"pull_request":{"url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379","id":76205651,"html_url":"https://github.com/quran/quran.com-frontend/pull/379","diff_url":"https://github.com/quran/quran.com-frontend/pull/379.diff","patch_url":"https://github.com/quran/quran.com-frontend/pull/379.patch","issue_url":"https://api.github.com/repos/quran/quran.com-frontend/issues/379","number":379,"state":"open","locked":false,"title":"- ayah's have link (discuss, maybe not needed)","user":{"login":"sabeurthabti","id":2606228,"avatar_url":"https://avatars.githubusercontent.com/u/2606228?v=3","gravatar_id":"","url":"https://api.github.com/users/sabeurthabti","html_url":"https://github.com/sabeurthabti","followers_url":"https://api.github.com/users/sabeurthabti/followers","following_url":"https://api.github.com/users/sabeurthabti/following{/other_user}","gists_url":"https://api.github.com/users/sabeurthabti/gists{/gist_id}","starred_url":"https://api.github.com/users/sabeurthabti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabeurthabti/subscriptions","organizations_url":"https://api.github.com/users/sabeurthabti/orgs","repos_url":"https://api.github.com/users/sabeurthabti/repos","events_url":"https://api.github.com/users/sabeurthabti/events{/privacy}","received_events_url":"https://api.github.com/users/sabeurthabti/received_events","type":"User","site_admin":false},"body":"- Fix audio player playing text\r\n- Remove unneeded padding on mobile\r\n- Hide Share on mobile devices (native share is built into the browsers)\r\n\r\nImages of style bugs:\r\n\r\n<img width=\"324\" alt=\"screen shot 2016-07-04 at 23 46 32\" src=\"https://cloud.githubusercontent.com/assets/2606228/16570998/c01608da-4249-11e6-970d-dd9ff12ab57b.png\">\r\n\r\n<img width=\"609\" alt=\"screen shot 2016-07-04 at 23 21 56\" src=\"https://cloud.githubusercontent.com/assets/2606228/16571000/c5a7458e-4249-11e6-975a-558cec286d0e.png\">\r\n","created_at":"2016-07-04T23:45:56Z","updated_at":"2016-07-05T07:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b003992afd65678f00e949c0b9a55b24259288a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379/commits","review_comments_url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379/comments","review_comment_url":"https://api.github.com/repos/quran/quran.com-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quran/quran.com-frontend/issues/379/comments","statuses_url":"https://api.github.com/repos/quran/quran.com-frontend/statuses/aed5a483a96e8fdbd9607e90d2c3abab4210cee9","head":{"label":"sabeurthabti:feature/styleTweak","ref":"feature/styleTweak","sha":"aed5a483a96e8fdbd9607e90d2c3abab4210cee9","user":{"login":"sabeurthabti","id":2606228,"avatar_url":"https://avatars.githubusercontent.com/u/2606228?v=3","gravatar_id":"","url":"https://api.github.com/users/sabeurthabti","html_url":"https://github.com/sabeurthabti","followers_url":"https://api.github.com/users/sabeurthabti/followers","following_url":"https://api.github.com/users/sabeurthabti/following{/other_user}","gists_url":"https://api.github.com/users/sabeurthabti/gists{/gist_id}","starred_url":"https://api.github.com/users/sabeurthabti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabeurthabti/subscriptions","organizations_url":"https://api.github.com/users/sabeurthabti/orgs","repos_url":"https://api.github.com/users/sabeurthabti/repos","events_url":"https://api.github.com/users/sabeurthabti/events{/privacy}","received_events_url":"https://api.github.com/users/sabeurthabti/received_events","type":"User","site_admin":false},"repo":{"id":62461091,"name":"quran.com-frontend","full_name":"sabeurthabti/quran.com-frontend","owner":{"login":"sabeurthabti","id":2606228,"avatar_url":"https://avatars.githubusercontent.com/u/2606228?v=3","gravatar_id":"","url":"https://api.github.com/users/sabeurthabti","html_url":"https://github.com/sabeurthabti","followers_url":"https://api.github.com/users/sabeurthabti/followers","following_url":"https://api.github.com/users/sabeurthabti/following{/other_user}","gists_url":"https://api.github.com/users/sabeurthabti/gists{/gist_id}","starred_url":"https://api.github.com/users/sabeurthabti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabeurthabti/subscriptions","organizations_url":"https://api.github.com/users/sabeurthabti/orgs","repos_url":"https://api.github.com/users/sabeurthabti/repos","events_url":"https://api.github.com/users/sabeurthabti/events{/privacy}","received_events_url":"https://api.github.com/users/sabeurthabti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sabeurthabti/quran.com-frontend","description":"quran.com frontend","fork":true,"url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend","forks_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/forks","keys_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/teams","hooks_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/hooks","issue_events_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/events","assignees_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/tags","blobs_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/languages","stargazers_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/stargazers","contributors_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/contributors","subscribers_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/subscribers","subscription_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/subscription","commits_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/merges","archive_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/downloads","issues_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/labels{/name}","releases_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/sabeurthabti/quran.com-frontend/deployments","created_at":"2016-07-02T16:58:42Z","updated_at":"2016-07-02T16:58:47Z","pushed_at":"2016-07-05T01:43:26Z","git_url":"git://github.com/sabeurthabti/quran.com-frontend.git","ssh_url":"git@github.com:sabeurthabti/quran.com-frontend.git","clone_url":"https://github.com/sabeurthabti/quran.com-frontend.git","svn_url":"https://github.com/sabeurthabti/quran.com-frontend","homepage":"https://quran.com","size":261683,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"quran:develop","ref":"develop","sha":"b23a80cc861a312c1995ba3aeb1e99911a30f938","user":{"login":"quran","id":21640,"avatar_url":"https://avatars.githubusercontent.com/u/21640?v=3","gravatar_id":"","url":"https://api.github.com/users/quran","html_url":"https://github.com/quran","followers_url":"https://api.github.com/users/quran/followers","following_url":"https://api.github.com/users/quran/following{/other_user}","gists_url":"https://api.github.com/users/quran/gists{/gist_id}","starred_url":"https://api.github.com/users/quran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quran/subscriptions","organizations_url":"https://api.github.com/users/quran/orgs","repos_url":"https://api.github.com/users/quran/repos","events_url":"https://api.github.com/users/quran/events{/privacy}","received_events_url":"https://api.github.com/users/quran/received_events","type":"Organization","site_admin":false},"repo":{"id":31837006,"name":"quran.com-frontend","full_name":"quran/quran.com-frontend","owner":{"login":"quran","id":21640,"avatar_url":"https://avatars.githubusercontent.com/u/21640?v=3","gravatar_id":"","url":"https://api.github.com/users/quran","html_url":"https://github.com/quran","followers_url":"https://api.github.com/users/quran/followers","following_url":"https://api.github.com/users/quran/following{/other_user}","gists_url":"https://api.github.com/users/quran/gists{/gist_id}","starred_url":"https://api.github.com/users/quran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quran/subscriptions","organizations_url":"https://api.github.com/users/quran/orgs","repos_url":"https://api.github.com/users/quran/repos","events_url":"https://api.github.com/users/quran/events{/privacy}","received_events_url":"https://api.github.com/users/quran/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quran/quran.com-frontend","description":"quran.com frontend","fork":false,"url":"https://api.github.com/repos/quran/quran.com-frontend","forks_url":"https://api.github.com/repos/quran/quran.com-frontend/forks","keys_url":"https://api.github.com/repos/quran/quran.com-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quran/quran.com-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quran/quran.com-frontend/teams","hooks_url":"https://api.github.com/repos/quran/quran.com-frontend/hooks","issue_events_url":"https://api.github.com/repos/quran/quran.com-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/quran/quran.com-frontend/events","assignees_url":"https://api.github.com/repos/quran/quran.com-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/quran/quran.com-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/quran/quran.com-frontend/tags","blobs_url":"https://api.github.com/repos/quran/quran.com-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quran/quran.com-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quran/quran.com-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/quran/quran.com-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quran/quran.com-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/quran/quran.com-frontend/languages","stargazers_url":"https://api.github.com/repos/quran/quran.com-frontend/stargazers","contributors_url":"https://api.github.com/repos/quran/quran.com-frontend/contributors","subscribers_url":"https://api.github.com/repos/quran/quran.com-frontend/subscribers","subscription_url":"https://api.github.com/repos/quran/quran.com-frontend/subscription","commits_url":"https://api.github.com/repos/quran/quran.com-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/quran/quran.com-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/quran/quran.com-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/quran/quran.com-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/quran/quran.com-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/quran/quran.com-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quran/quran.com-frontend/merges","archive_url":"https://api.github.com/repos/quran/quran.com-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quran/quran.com-frontend/downloads","issues_url":"https://api.github.com/repos/quran/quran.com-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/quran/quran.com-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/quran/quran.com-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/quran/quran.com-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quran/quran.com-frontend/labels{/name}","releases_url":"https://api.github.com/repos/quran/quran.com-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/quran/quran.com-frontend/deployments","created_at":"2015-03-08T03:30:03Z","updated_at":"2016-07-04T21:40:04Z","pushed_at":"2016-07-05T01:43:26Z","git_url":"git://github.com/quran/quran.com-frontend.git","ssh_url":"git@github.com:quran/quran.com-frontend.git","clone_url":"https://github.com/quran/quran.com-frontend.git","svn_url":"https://github.com/quran/quran.com-frontend","homepage":"https://quran.com","size":269699,"stargazers_count":117,"watchers_count":117,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"open_issues_count":25,"forks":43,"open_issues":25,"watchers":117,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379"},"html":{"href":"https://github.com/quran/quran.com-frontend/pull/379"},"issue":{"href":"https://api.github.com/repos/quran/quran.com-frontend/issues/379"},"comments":{"href":"https://api.github.com/repos/quran/quran.com-frontend/issues/379/comments"},"review_comments":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379/comments"},"review_comment":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quran/quran.com-frontend/pulls/379/commits"},"statuses":{"href":"https://api.github.com/repos/quran/quran.com-frontend/statuses/aed5a483a96e8fdbd9607e90d2c3abab4210cee9"}}}}
{"actor":{"display_login":"sabeurthabti"}}