[Accessibility] Fix typo in handleAdviceCardDissmiss function name (#48650)
* Fix typo in handleAdviceCardDissmiss function name * Add changelog file
This commit is contained in:
parent
deb76cbada
commit
d5993ec424
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: tweak
|
||||||
|
|
||||||
|
Fix typo in handleAdviceCardDissmiss function name
|
|
@ -259,7 +259,7 @@ export function LinkedProductListBlockEdit( {
|
||||||
setLinkedProductIds( newLinkedProducts );
|
setLinkedProductIds( newLinkedProducts );
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleAdviceCardDissmiss() {
|
function handleAdviceCardDismiss() {
|
||||||
recordEvent( 'linked_products_placeholder_dismiss', {
|
recordEvent( 'linked_products_placeholder_dismiss', {
|
||||||
source: TRACKS_SOURCE,
|
source: TRACKS_SOURCE,
|
||||||
field: property,
|
field: property,
|
||||||
|
@ -297,7 +297,7 @@ export function LinkedProductListBlockEdit( {
|
||||||
tip={ emptyState.tip }
|
tip={ emptyState.tip }
|
||||||
dismissPreferenceId={ `woocommerce-product-${ property }-advice-card-dismissed` }
|
dismissPreferenceId={ `woocommerce-product-${ property }-advice-card-dismissed` }
|
||||||
isDismissible={ emptyState.isDismissible }
|
isDismissible={ emptyState.isDismissible }
|
||||||
onDismiss={ handleAdviceCardDissmiss }
|
onDismiss={ handleAdviceCardDismiss }
|
||||||
>
|
>
|
||||||
<EmptyStateImage { ...emptyState } />
|
<EmptyStateImage { ...emptyState } />
|
||||||
</AdviceCard>
|
</AdviceCard>
|
||||||
|
|
Loading…
Reference in New Issue