react-code-dataset / wp-calypso /apps /wpcom-block-editor /src /wpcom /features /tracking /wpcom-block-donations-stripe-connect.js
react-code-dataset / wp-calypso /apps /wpcom-block-editor /src /wpcom /features /tracking /wpcom-block-donations-stripe-connect.js
Download wp-calypso/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-block-donations-stripe-connect.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-block-donations-stripe-connect.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-block-donations-stripe-connect.js
-
curl -L -o wpcom-block-donations-stripe-connect.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/wpcom-block-editor/src/wpcom/features/tracking/wpcom-block-donations-stripe-connect.js
482 Bytes
| import tracksRecordEvent from './track-record-event'; | |
| /** | |
| * Return the event definition object to track `wpcom_block_donations_stripe_connect_click `. | |
| * @returns {import('./types').DelegateEventHandler} event object definition. | |
| */ | |
| export default () => ( { | |
| id: 'wpcom-block-donations-stripe-connect', | |
| selector: '.wp-block[data-type="a8c/donations"] .stripe-nudge__button', | |
| type: 'click', | |
| handler: () => tracksRecordEvent( 'wpcom_block_donations_stripe_connect_click' ), | |
| } ); | |