In speakers list section, if user is connected, add an edit button at the end of each section (like the star icon below):
![image](https://user-images.githubusercontent.com/26435/86932428-a5f7d280-c139-11ea-927b-75a6bfe5c1f6.png)
Instead of star icon, use this edit button https://icons.expo.fyi/FontAwesome/edit
When user clicks on edit button, show a form with the following inputs and an Update button:
Name
Twitter
Github
email
Short Bio (multiline text input)
Bio (multiline text input)
Status (select box with [{value: 0, label: "Unconfirmed"}, {value: 1, label: "Confirmed"}, {value: 2, label: "Rejected"}]
To fetch speakers details for the admin, use this query:
query{
adminEvents(id: 171,
token: token, id: 1062 ){
adminSpeakers{
id
name
twitter
github
email
shortBio
bio
status
}
}
}
}
The gql to execute is when user cliks on Update button is:
mutation{
updateSpeaker(id: 1062
email: "[email protected]",
github: "gsans",
name: "Gerard Sans",
shortBio: "",
status: 1,
twitter: "gerardsans"
token: token)
{
name
twitter
github
email
shortBio
bio
status
}
}