Adding unSuspendUser mutation

This commit is contained in:
Belen Curcio
2017-12-11 08:37:09 -03:00
parent 8df4b79f97
commit 8e582bff45
@@ -177,6 +177,25 @@ export const withSuspendUser = withMutation(
})
});
export const withUnSuspendUser = withMutation(
gql`
mutation UnSuspendUser($input: SuspendUserInput!) {
unSuspendUser(input: $input) {
...SuspendUserResponse
}
}
`, {
props: ({mutate}) => ({
unSuspendUser: (input) => {
return mutate({
variables: {
input,
},
});
}
}),
});
export const withApproveUsername = withMutation(
gql`
mutation ApproveUsername($id: ID!) {