Skip to content

Commit

Permalink
A4A > Agency Tier: Allow agencies to download the agency tier badges (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yashwin authored Feb 6, 2025
1 parent 2ce2877 commit 9512f79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ function DownloadLink( {
woocommerce: {
'agency-partner': {
name: translate( 'Woo Agency Partner' ),
href: 'https://automattic.com/wp-content/uploads/2024/10/agency_tier_woo_partner.zip',
href: 'https://automattic.com/wp-content/uploads/2025/02/agency_tier_woo_partner.zip',
icon: <img src={ WooLogo } alt="WooCommerce" />,
},
'pro-agency-partner': {
name: translate( 'Woo Pro Agency Partner' ),
href: 'https://automattic.com/wp-content/uploads/2024/10/agency_tier_woo_pro_partner.zip',
href: 'https://automattic.com/wp-content/uploads/2025/02/agency_tier_woo_pro_partner.zip',
icon: <img src={ WooLogo } alt="WooCommerce" />,
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,9 @@ export default function AgencyTierOverview() {

const ALL_TIERS: AgencyTier[] = [ 'emerging-partner', 'agency-partner', 'pro-agency-partner' ];

// todo: Restore this. We have to hide temporary the 'Download your badges' button until the WooCommerce ones are ready
// A4A GH issue: 1500
const temporaryHideDownloadBadges = true;

// Show download badges button for Agency Partner and Pro Agency Partner tiers
const showDownloadBadges =
! temporaryHideDownloadBadges &&
currentAgencyTier &&
[ 'agency-partner', 'pro-agency-partner' ].includes( currentAgencyTier );
currentAgencyTier && [ 'agency-partner', 'pro-agency-partner' ].includes( currentAgencyTier );

return (
<Layout className="agency-tier-overview" title={ title } wide>
Expand Down

0 comments on commit 9512f79

Please sign in to comment.