Skip to content

Commit

Permalink
Hide Jetpack Manage header when the component is used in A4A (#91021)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcanepa committed May 23, 2024
1 parent 6a9f8a8 commit 0fb8dfe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useTranslate } from 'i18n-calypso';
import { FunctionComponent } from 'react';
import isA8CForAgencies from 'calypso/lib/a8c-for-agencies/is-a8c-for-agencies';
import { APIProductFamilyProduct } from 'calypso/state/partner-portal/types';
import ProductPriceWithDiscount from '../primary/product-price-with-discount-info';

Expand All @@ -14,10 +15,13 @@ const LicenseLightboxJetpackManageLicense: FunctionComponent< Props > = ( {
} ) => {
const translate = useTranslate();

// Once this component is ported to A4A, we can get remove this conditional
const isA4A = isA8CForAgencies();

return (
<div className="license-lightbox__jetpack-manage-license">
<h3 className="license-lightbox__jetpack-manage-license-title">
{ translate( 'Jetpack Manage license:' ) }
{ ! isA4A && translate( 'Jetpack Manage license:' ) }
</h3>

<div className="license-lightbox__pricing">
Expand Down

0 comments on commit 0fb8dfe

Please sign in to comment.