Skip to content

Commit

Permalink
feat: benefits in ProductCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-daniel-dempsey committed Jan 30, 2025
1 parent b4558de commit 3e10725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion support-frontend/assets/helpers/productCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type { ActiveProductKey };

export const productCatalog = window.guardian.productCatalog;

type ProductBenefit = {
export type ProductBenefit = {
copy: string;
tooltip?: string;
specificToRegions?: CountryGroupId[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import type { Participations } from 'helpers/abTests/abtest';
import type { CountryGroupId } from 'helpers/internationalisation/countryGroup';
import { GBPCountries } from 'helpers/internationalisation/countryGroup';
import { currencies, detect } from 'helpers/internationalisation/currency';
import type { ProductBenefit } from 'helpers/productCatalog';
import { productCatalogDescription } from 'helpers/productCatalog';
import type { BillingPeriod } from 'helpers/productPrice/billingPeriods';
import { Monthly } from 'helpers/productPrice/billingPeriods';
import {
Expand Down Expand Up @@ -43,6 +45,7 @@ type ProductCopy = {
buttons: ProductButton[];
classModifier?: string[];
participations?: Participations;
benefits?: ProductBenefit[];
};

const getDisplayPrice = (
Expand Down Expand Up @@ -115,6 +118,7 @@ function digitalCheckout(
modifierClasses: 'digital',
},
],
benefits: productCatalogDescription['DigitalSubscription'].benefits,
};
}

Expand Down

0 comments on commit 3e10725

Please sign in to comment.