Skip to content

Commit

Permalink
Add Jetpack Stats title and description to licensing portal (#80326)
Browse files Browse the repository at this point in the history
Co-authored-by: Rich Collier <rcollier@zion.local>
  • Loading branch information
rcoll and Rich Collier authored Aug 22, 2023
1 parent 20e370b commit 456769c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/jetpack-cloud/sections/partner-portal/hooks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ export function useProductDescription( productSlug: string ): {
'Powerful marketing automation for WooCommerce - grow your store and make more money.'
);
break;
case 'jetpack-stats':
description = translate( 'Powerful analytics to help you understand your audience.' );
}

return {
Expand Down
3 changes: 3 additions & 0 deletions client/jetpack-cloud/sections/partner-portal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ export function getProductTitle( product: string ): string {
return 'AI Assistant';
}

if ( 'Jetpack Stats (Commercial license)' === product ) {
return 'Stats';
}
return product.replace( /(?:Jetpack\s|[)(])/gi, '' );
}

Expand Down

0 comments on commit 456769c

Please sign in to comment.