Skip to content

Commit

Permalink
remove unused cancellation reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Bangay committed Nov 15, 2024
1 parent d419b86 commit 2b64963
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
15 changes: 2 additions & 13 deletions client/components/mma/cancel/cancellationReason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,17 @@ export type CancellationReasonId =
| 'mma_better_offer'
| 'mma_issue'
| 'mma_financial_circumstances'
| 'mma_cost_of_living'
| 'mma_cutting_subscriptions'
| 'mma_payment_issue'
| 'mma_price_increase'
| 'mma_article'
| 'mma_editorial'
| 'mma_benefits'
| 'mma_value_for_money'
| 'mma_support_another_way'
| 'mma_prefer_lower_amount'
| 'mma_prefer_less_frequent'
| 'mma_direct_debit'
| 'mma_one_off'
| 'mma_wants_monthly_contribution'
| 'mma_wants_annual_contribution'
| 'mma_health'
| 'mma_break_from_news'
| 'mma_values'
| 'mma_no_need'
| 'mma_dont_know_what_for'
| 'mma_other'
| 'mma_membership_cancellation_default'
| 'mma_cancellation_default';
| 'mma_cancellation_default'
| 'mma_membership_cancellation_default';

export type OptionalCancellationReasonId = CancellationReasonId | undefined;
10 changes: 0 additions & 10 deletions shared/productTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,7 @@ export const PRODUCT_TYPES: { [productKey in ProductTypeKeys]: ProductType } = {
switch (reasonId) {
case 'mma_financial_circumstances':
case 'mma_value_for_money':
case 'mma_one_off':
return 'You can support The Guardian’s independent journalism with a One-time contribution, from as little as £1 – and it only takes a minute.';
case 'mma_wants_annual_contribution':
return 'You can support The Guardian’s independent journalism for the long term with an annual contribution.';
case 'mma_wants_monthly_contribution':
return 'You can support The Guardian’s independent journalism for the long term with a monthly contribution.';
default:
return undefined;
}
Expand All @@ -363,12 +358,7 @@ export const PRODUCT_TYPES: { [productKey in ProductTypeKeys]: ProductType } = {
switch (reasonId) {
case 'mma_financial_circumstances':
case 'mma_value_for_money':
case 'mma_one_off':
return 'Make a One-time contribution';
case 'mma_wants_annual_contribution':
return 'Make an annual contribution';
case 'mma_wants_monthly_contribution':
return 'Make a monthly contribution';
default:
return undefined;
}
Expand Down

0 comments on commit 2b64963

Please sign in to comment.