mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 13:50:35 +08:00
24 lines
551 B
JavaScript
24 lines
551 B
JavaScript
import { withMutation } from 'plugin-api/beta/client/hocs';
|
|
import { gql } from 'react-apollo';
|
|
|
|
export const withUpdateNotificationSettings = withMutation(
|
|
gql`
|
|
mutation UpdateNotificationSettings($input: NotificationSettingsInput!) {
|
|
updateNotificationSettings(input: $input) {
|
|
...UpdateNotificationSettingsResponse
|
|
}
|
|
}
|
|
`,
|
|
{
|
|
props: ({ mutate }) => ({
|
|
updateNotificationSettings: input => {
|
|
return mutate({
|
|
variables: {
|
|
input,
|
|
},
|
|
});
|
|
},
|
|
}),
|
|
}
|
|
);
|