mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Adding unSuspendUser mutation
This commit is contained in:
@@ -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!) {
|
||||
|
||||
Reference in New Issue
Block a user