diff --git a/apps/admin-x-settings/src/components/settings/membership/offers/OffersModal.tsx b/apps/admin-x-settings/src/components/settings/membership/offers/OffersModal.tsx index de2a1b618b..e3e0f49b5b 100644 --- a/apps/admin-x-settings/src/components/settings/membership/offers/OffersModal.tsx +++ b/apps/admin-x-settings/src/components/settings/membership/offers/OffersModal.tsx @@ -8,6 +8,11 @@ import {useEffect} from 'react'; export type OfferType = 'percent' | 'fixed' | 'trial'; +const createRedemptionFilterUrl = (id: string): string => { + const baseHref = '/ghost/#/members'; + return `${baseHref}?filter=${encodeURIComponent('offer_redemptions:' + id)}`; +}; + const OfferCard: React.FC<{name: string, type: OfferType, onClick: ()=>void}> = ({name, type, onClick}) => { let discountColor = ''; @@ -36,7 +41,8 @@ const OfferCard: React.FC<{name: string, type: OfferType, onClick: ()=>void}> =