Created
May 8, 2019 18:39
-
-
Save aleccool213/8654b97f7e908cd9a09ade70ab8d1f10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const IssueContainer: React.FC<{ issue: GithubIssue }> = ({ issue }) => ( | |
<UpdateIssueNameMutation mutation={UPDATE_ISSUE_NAME}> | |
{updateIssuename => ( | |
<IssueFields | |
issue={issue} | |
onChange={name => { | |
updateIssuename({ | |
variables: { | |
input: { | |
id: issue.id, | |
name, | |
}, | |
}, | |
}); | |
}} | |
/> | |
)} | |
</UpdateIssueNameMutation> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment