Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. const showToast = React.useCallback(event => {
  2. reporter.event('client.action', {
  3. action: 'toggle-subscribe-letters',
  4. eventType: 'click',
  5. classAttribute: 'checkbox',
  6. })
  7. if (event.target.checked) {
  8. props.subscribeCollectionLettersMutation && props.subscribeCollectionLettersMutation()
  9. } else {
  10. props.unsubscribeCollectionLettersMutation && props.unsubscribeCollectionLettersMutation()
  11. }
  12. setToastVisibility(true)
  13. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement