Skip to content

Commit

Permalink
Use primaryActionOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRamosC committed Jul 10, 2024
1 parent 27114be commit a0eb612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ActionButton = ( {
case PRODUCT_STATUSES.NEEDS_FIRST_SITE_CONNECTION:
return {
...buttonState,
href: slug !== 'stats' && purchaseUrl ? purchaseUrl : '#/add-stats',
href: purchaseUrl || `#/add-${ slug }`,
size: 'small',
variant: 'primary',
weight: 'regular',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ const StatsSection = () => {
[ PRODUCT_STATUSES.ERROR ]: {
label: __( 'Connect Jetpack to use Stats', 'jetpack-my-jetpack' ),
},
[ PRODUCT_STATUSES.NEEDS_FIRST_SITE_CONNECTION ]: {
href: `#/add-${ slug }`,
},
};

return (
Expand Down

0 comments on commit a0eb612

Please sign in to comment.