{"action":"closed","issue":{"url":"https://api.github.com/repos/seanmurakami/event-space/issues/10","repository_url":"https://api.github.com/repos/seanmurakami/event-space","labels_url":"https://api.github.com/repos/seanmurakami/event-space/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/seanmurakami/event-space/issues/10/comments","events_url":"https://api.github.com/repos/seanmurakami/event-space/issues/10/events","html_url":"https://github.com/seanmurakami/event-space/issues/10","id":372740846,"node_id":"MDU6SXNzdWUzNzI3NDA4NDY=","number":10,"title":"User can delete an event","user":{"login":"seanmurakami","id":38697885,"node_id":"MDQ6VXNlcjM4Njk3ODg1","avatar_url":"https://avatars2.githubusercontent.com/u/38697885?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmurakami","html_url":"https://github.com/seanmurakami","followers_url":"https://api.github.com/users/seanmurakami/followers","following_url":"https://api.github.com/users/seanmurakami/following{/other_user}","gists_url":"https://api.github.com/users/seanmurakami/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmurakami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmurakami/subscriptions","organizations_url":"https://api.github.com/users/seanmurakami/orgs","repos_url":"https://api.github.com/users/seanmurakami/repos","events_url":"https://api.github.com/users/seanmurakami/events{/privacy}","received_events_url":"https://api.github.com/users/seanmurakami/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"seanmurakami","id":38697885,"node_id":"MDQ6VXNlcjM4Njk3ODg1","avatar_url":"https://avatars2.githubusercontent.com/u/38697885?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmurakami","html_url":"https://github.com/seanmurakami","followers_url":"https://api.github.com/users/seanmurakami/followers","following_url":"https://api.github.com/users/seanmurakami/following{/other_user}","gists_url":"https://api.github.com/users/seanmurakami/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmurakami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmurakami/subscriptions","organizations_url":"https://api.github.com/users/seanmurakami/orgs","repos_url":"https://api.github.com/users/seanmurakami/repos","events_url":"https://api.github.com/users/seanmurakami/events{/privacy}","received_events_url":"https://api.github.com/users/seanmurakami/received_events","type":"User","site_admin":false},"assignees":[{"login":"seanmurakami","id":38697885,"node_id":"MDQ6VXNlcjM4Njk3ODg1","avatar_url":"https://avatars2.githubusercontent.com/u/38697885?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmurakami","html_url":"https://github.com/seanmurakami","followers_url":"https://api.github.com/users/seanmurakami/followers","following_url":"https://api.github.com/users/seanmurakami/following{/other_user}","gists_url":"https://api.github.com/users/seanmurakami/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmurakami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmurakami/subscriptions","organizations_url":"https://api.github.com/users/seanmurakami/orgs","repos_url":"https://api.github.com/users/seanmurakami/repos","events_url":"https://api.github.com/users/seanmurakami/events{/privacy}","received_events_url":"https://api.github.com/users/seanmurakami/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-10-22T23:28:20Z","updated_at":"2018-11-02T16:55:34Z","closed_at":"2018-11-02T16:55:34Z","author_association":"OWNER","body":"# 🤑 Motivation\r\nUser can delete an event.\r\n\r\n# 🗺 Plan\r\nAdd an icon to the details page of an event and assign it the same id as the selected event. \r\n\r\n# ⛏ Implementation\r\n- [x] Create a wire frame.\r\n- [x] Put a trash icon on the bottom right corner of each event detail\r\n- [x] Assign it an prop name \"id\" with the id of the selected event\r\n- [x] Create a onClick listener on the icon that opens a modal\r\n- [x] If the user clicks yes, it runs a function to fetch the data, call a delete method, and update the state with the new array of events\r\n  - [x] Create function on App component that receives the id number as an argument\r\n  - [x] It uses that id number in the fetch argument \"events/(id)\"\r\n  - [x] Take the current state.events and slice it using the id that was used in the argument list\r\n  - [x] Update the state with the new array of events\r\n\r\n# 🖼 Wire Frame\r\n![delete-event](https://occs.mybalsamiq.com/mockups/6638564.png?key=3f3206d17f2cc226e61d3f456bea41766f16afb2)"}}
{"actor":{"display_login":"seanmurakami"}}