SHARE
TWEET

Untitled

a guest Jun 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top