{"action":"created","comment":{"url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/comments/171785123","pull_request_review_id":100699739,"id":171785123,"diff_hunk":"@@ -0,0 +1,147 @@\n+import React from 'react';\n+import { withState, withHandlers, lifecycle, compose } from 'recompose';\n+\n+import { TOURNAMENT_ACTIONS } from '../../constants/constants';\n+\n+import { getTournaments } from '../../services/tournamentServices/tournamentServices';\n+\n+import TournamentList from './tournamentList';\n+import tournamentActions from '../hocs/tournamentActions';\n+import CreateTournament from './actions/CreateTournament';\n+import DeleteTournamentModal from './tournamentModal/DeleteTournamentModal';\n+import AddEditTournamentModal from './tournamentModal/AddEditTournamentModal';\n+\n+function Admin(props) {\n+  const {\n+    add,\n+    edit,\n+    title,\n+    remove,\n+    formData,\n+    startDate,\n+    modalOpen,\n+    finishDate,\n+    handleOpen,\n+    tournaments,\n+    handleClose,\n+    handleChange,\n+    setShowToaster,\n+    setToasterMessage,\n+    updateTournaments,\n+    selectedTournament\n+  } = props;\n+\n+  return (\n+    <div className=\"admin-outer-container\">\n+      <div className=\"admin-main-container\">\n+        <h1>Tournaments</h1>\n+        <CreateTournament\n+          add={add}\n+          title={title}\n+          formData={formData}\n+          startDate={startDate}\n+          modalOpen={modalOpen}\n+          finishDate={finishDate}\n+          handleOpen={handleOpen}\n+          handleClose={handleClose}\n+          handleChange={handleChange}\n+          setShowToaster={setShowToaster}\n+          setToasterMessage={setToasterMessage}\n+          updateTournaments={updateTournaments}\n+        />\n+        <div className=\"admin-panel-container\">\n+          <TournamentList\n+            title={title}\n+            formData={formData}\n+            tournaments={tournaments}\n+            modalOpen={modalOpen}\n+            startDate={startDate}\n+            finishDate={finishDate}\n+            handleOpen={handleOpen}\n+            handleClose={handleClose}\n+            handleChange={handleChange}\n+            updateTournaments={updateTournaments}\n+          />\n+        </div>\n+        {selectedTournament ? (\n+          <AddEditTournamentModal\n+            action={edit}\n+            open={modalOpen.edit}\n+            modalOpen={modalOpen}\n+            tournament={selectedTournament}\n+            handleClose={handleClose}\n+            toggle={TOURNAMENT_ACTIONS.edit}\n+            handleChange={handleChange}","path":"frontend/src/components/admin/Admin.js","position":74,"original_position":74,"commit_id":"cec361c8a3790acaf8080b438515223b4aa9396e","original_commit_id":"cec361c8a3790acaf8080b438515223b4aa9396e","user":{"login":"arun-tamang","id":27883939,"avatar_url":"https://avatars3.githubusercontent.com/u/27883939?v=4","gravatar_id":"","url":"https://api.github.com/users/arun-tamang","html_url":"https://github.com/arun-tamang","followers_url":"https://api.github.com/users/arun-tamang/followers","following_url":"https://api.github.com/users/arun-tamang/following{/other_user}","gists_url":"https://api.github.com/users/arun-tamang/gists{/gist_id}","starred_url":"https://api.github.com/users/arun-tamang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arun-tamang/subscriptions","organizations_url":"https://api.github.com/users/arun-tamang/orgs","repos_url":"https://api.github.com/users/arun-tamang/repos","events_url":"https://api.github.com/users/arun-tamang/events{/privacy}","received_events_url":"https://api.github.com/users/arun-tamang/received_events","type":"User","site_admin":false},"body":"length rule.","created_at":"2018-03-02T08:16:39Z","updated_at":"2018-03-02T08:16:39Z","html_url":"https://github.com/leapfrogtechnology/LF-Sports/pull/36#discussion_r171785123","pull_request_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/comments/171785123"},"html":{"href":"https://github.com/leapfrogtechnology/LF-Sports/pull/36#discussion_r171785123"},"pull_request":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36","id":171877088,"html_url":"https://github.com/leapfrogtechnology/LF-Sports/pull/36","diff_url":"https://github.com/leapfrogtechnology/LF-Sports/pull/36.diff","patch_url":"https://github.com/leapfrogtechnology/LF-Sports/pull/36.patch","issue_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/36","number":36,"state":"open","locked":false,"title":"SPORTS-2 As a user, I should be able to manage the tournaments","user":{"login":"Ishanliv99","id":11689988,"avatar_url":"https://avatars0.githubusercontent.com/u/11689988?v=4","gravatar_id":"","url":"https://api.github.com/users/Ishanliv99","html_url":"https://github.com/Ishanliv99","followers_url":"https://api.github.com/users/Ishanliv99/followers","following_url":"https://api.github.com/users/Ishanliv99/following{/other_user}","gists_url":"https://api.github.com/users/Ishanliv99/gists{/gist_id}","starred_url":"https://api.github.com/users/Ishanliv99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ishanliv99/subscriptions","organizations_url":"https://api.github.com/users/Ishanliv99/orgs","repos_url":"https://api.github.com/users/Ishanliv99/repos","events_url":"https://api.github.com/users/Ishanliv99/events{/privacy}","received_events_url":"https://api.github.com/users/Ishanliv99/received_events","type":"User","site_admin":false},"body":"* Add ui for view, add, edit and delete for tournament\r\n* Implement semantic-ui react\r\n\r\n_**Note:** Run `yarn` after merging this_","created_at":"2018-02-28T07:39:59Z","updated_at":"2018-03-02T08:16:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfaa98cdb6c08831ad522115f7d05cc1e1d1f039","assignee":{"login":"sanjeevkpandit","id":13619272,"avatar_url":"https://avatars0.githubusercontent.com/u/13619272?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjeevkpandit","html_url":"https://github.com/sanjeevkpandit","followers_url":"https://api.github.com/users/sanjeevkpandit/followers","following_url":"https://api.github.com/users/sanjeevkpandit/following{/other_user}","gists_url":"https://api.github.com/users/sanjeevkpandit/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeevkpandit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeevkpandit/subscriptions","organizations_url":"https://api.github.com/users/sanjeevkpandit/orgs","repos_url":"https://api.github.com/users/sanjeevkpandit/repos","events_url":"https://api.github.com/users/sanjeevkpandit/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeevkpandit/received_events","type":"User","site_admin":false},"assignees":[{"login":"sanjeevkpandit","id":13619272,"avatar_url":"https://avatars0.githubusercontent.com/u/13619272?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjeevkpandit","html_url":"https://github.com/sanjeevkpandit","followers_url":"https://api.github.com/users/sanjeevkpandit/followers","following_url":"https://api.github.com/users/sanjeevkpandit/following{/other_user}","gists_url":"https://api.github.com/users/sanjeevkpandit/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeevkpandit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeevkpandit/subscriptions","organizations_url":"https://api.github.com/users/sanjeevkpandit/orgs","repos_url":"https://api.github.com/users/sanjeevkpandit/repos","events_url":"https://api.github.com/users/sanjeevkpandit/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeevkpandit/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":810090870,"url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/labels/new%20feature%20:new:","name":"new feature :new:","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36/commits","review_comments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36/comments","review_comment_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/36/comments","statuses_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/statuses/cec361c8a3790acaf8080b438515223b4aa9396e","head":{"label":"leapfrogtechnology:SPORTS-55","ref":"SPORTS-55","sha":"cec361c8a3790acaf8080b438515223b4aa9396e","user":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars1.githubusercontent.com/u/3176020?v=4","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"repo":{"id":115388139,"name":"LF-Sports","full_name":"leapfrogtechnology/LF-Sports","owner":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars1.githubusercontent.com/u/3176020?v=4","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapfrogtechnology/LF-Sports","description":"LF Sports Management Website Development","fork":false,"url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports","forks_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/forks","keys_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/teams","hooks_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/hooks","issue_events_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/events{/number}","events_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/events","assignees_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/assignees{/user}","branches_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/branches{/branch}","tags_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/tags","blobs_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/statuses/{sha}","languages_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/languages","stargazers_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/stargazers","contributors_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/contributors","subscribers_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/subscribers","subscription_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/subscription","commits_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/contents/{+path}","compare_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/merges","archive_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/downloads","issues_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues{/number}","pulls_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls{/number}","milestones_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/milestones{/number}","notifications_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/labels{/name}","releases_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/releases{/id}","deployments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/deployments","created_at":"2017-12-26T05:22:13Z","updated_at":"2018-02-16T11:15:48Z","pushed_at":"2018-03-02T08:13:03Z","git_url":"git://github.com/leapfrogtechnology/LF-Sports.git","ssh_url":"git@github.com:leapfrogtechnology/LF-Sports.git","clone_url":"https://github.com/leapfrogtechnology/LF-Sports.git","svn_url":"https://github.com/leapfrogtechnology/LF-Sports","homepage":"","size":1770,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"leapfrogtechnology:dev","ref":"dev","sha":"96438f050f4b357374cbb8883e4d840628bf7e6b","user":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars1.githubusercontent.com/u/3176020?v=4","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"repo":{"id":115388139,"name":"LF-Sports","full_name":"leapfrogtechnology/LF-Sports","owner":{"login":"leapfrogtechnology","id":3176020,"avatar_url":"https://avatars1.githubusercontent.com/u/3176020?v=4","gravatar_id":"","url":"https://api.github.com/users/leapfrogtechnology","html_url":"https://github.com/leapfrogtechnology","followers_url":"https://api.github.com/users/leapfrogtechnology/followers","following_url":"https://api.github.com/users/leapfrogtechnology/following{/other_user}","gists_url":"https://api.github.com/users/leapfrogtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/leapfrogtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leapfrogtechnology/subscriptions","organizations_url":"https://api.github.com/users/leapfrogtechnology/orgs","repos_url":"https://api.github.com/users/leapfrogtechnology/repos","events_url":"https://api.github.com/users/leapfrogtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/leapfrogtechnology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leapfrogtechnology/LF-Sports","description":"LF Sports Management Website Development","fork":false,"url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports","forks_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/forks","keys_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/teams","hooks_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/hooks","issue_events_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/events{/number}","events_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/events","assignees_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/assignees{/user}","branches_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/branches{/branch}","tags_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/tags","blobs_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/refs{/sha}","trees_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/statuses/{sha}","languages_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/languages","stargazers_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/stargazers","contributors_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/contributors","subscribers_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/subscribers","subscription_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/subscription","commits_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/commits{/sha}","git_commits_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/git/commits{/sha}","comments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/comments{/number}","issue_comment_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/comments{/number}","contents_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/contents/{+path}","compare_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/merges","archive_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/downloads","issues_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues{/number}","pulls_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls{/number}","milestones_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/milestones{/number}","notifications_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/labels{/name}","releases_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/releases{/id}","deployments_url":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/deployments","created_at":"2017-12-26T05:22:13Z","updated_at":"2018-02-16T11:15:48Z","pushed_at":"2018-03-02T08:13:03Z","git_url":"git://github.com/leapfrogtechnology/LF-Sports.git","ssh_url":"git@github.com:leapfrogtechnology/LF-Sports.git","clone_url":"https://github.com/leapfrogtechnology/LF-Sports.git","svn_url":"https://github.com/leapfrogtechnology/LF-Sports","homepage":"","size":1770,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36"},"html":{"href":"https://github.com/leapfrogtechnology/LF-Sports/pull/36"},"issue":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/36"},"comments":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/leapfrogtechnology/LF-Sports/statuses/cec361c8a3790acaf8080b438515223b4aa9396e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"arun-tamang"}}