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}> =
Bronze monthly — First payment - 4 redemptions + {/* TODO: pass in actual offer ID */} + 4 redemptions
; }; @@ -83,6 +89,7 @@ const OffersModal = () => {

Active offers

+ {/* TODO replace 123 with actual offer ID */} handleOfferEdit('123')} /> handleOfferEdit('123')} /> handleOfferEdit('123')} />