Remove inbox_action_click event -- this is called from backend by triggerNoteAction (https://github.com/woocommerce/woocommerce-admin/pull/8376)

This commit is contained in:
Moon 2022-02-28 11:40:35 -08:00 committed by GitHub
parent 01e5cbdd7f
commit a2dfbffe89
1 changed files with 3 additions and 13 deletions

View File

@ -272,18 +272,6 @@ const InboxPanel = ( { showHeader = true } ) => {
}
};
const onNoteActionClick = ( note, action ) => {
triggerNoteAction( note.id, action.id );
const screen = getScreenName();
recordEvent( 'inbox_action_click', {
note_content: note.content,
note_name: note.name,
note_title: note.title,
note_type: note.type,
screen,
} );
};
if ( isError ) {
const title = __(
'There was an error getting your inbox. Please try again.',
@ -332,7 +320,9 @@ const InboxPanel = ( { showHeader = true } ) => {
isBatchUpdating,
notes,
onDismiss,
onNoteActionClick,
onNoteActionClick: ( note, action ) => {
triggerNoteAction( note.id, action.id );
},
setShowDismissAllModal,
showHeader,
} ) }