Skip to content

Commit

Permalink
Add accidentally removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeyGuyDylan committed Feb 7, 2025
1 parent c85ab68 commit 32266ff
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import type {
Operator,
Option,
} from '@wordpress/dataviews';
import type { FC } from 'react';
import type { FC, MouseEvent } from 'react';

import './style.scss';

Expand Down Expand Up @@ -134,6 +134,15 @@ const ProductsTableView: FC< ProductsTableViewProps > = ( { products } ) => {
[ products, allProductData ]
);

const navigateToInterstitial = useCallback(
( slug: string ) => ( event: MouseEvent< HTMLButtonElement > ) => {
event.preventDefault();
recordEvent( `jetpack_myjetpack_product_list_item_${ slug }_learnmore_mobile_click` );
navigate( `add-${ slug }` );
},
[ navigate, recordEvent ]
);

const fields = useMemo( () => {
return [
{
Expand Down

0 comments on commit 32266ff

Please sign in to comment.