mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Handling archived tiers for offer list
This commit is contained in:
parent
1d8adc6e86
commit
13b9ba9627
2 changed files with 5 additions and 1 deletions
|
@ -127,6 +127,10 @@ const OffersModal = () => {
|
||||||
{offers.filter(offer => offer.status === selectedTab).map((offer) => {
|
{offers.filter(offer => offer.status === selectedTab).map((offer) => {
|
||||||
const offerTier = paidActiveTiers.find(tier => tier.id === offer?.tier.id);
|
const offerTier = paidActiveTiers.find(tier => tier.id === offer?.tier.id);
|
||||||
|
|
||||||
|
if (!offerTier) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OfferCard
|
<OfferCard
|
||||||
key={offer?.id}
|
key={offer?.id}
|
||||||
|
|
|
@ -133,7 +133,7 @@ const TierDetailModalContent: React.FC<{tier?: Tier}> = ({tier}) => {
|
||||||
const promptTitle = tier.active ? 'Archive tier' : 'Reactivate tier';
|
const promptTitle = tier.active ? 'Archive tier' : 'Reactivate tier';
|
||||||
const prompt = tier.active ? <>
|
const prompt = tier.active ? <>
|
||||||
<div className='mb-6'>Members will no longer be able to subscribe to <strong>{tier.name}</strong> and it will be removed from the list of available tiers in portal.</div>
|
<div className='mb-6'>Members will no longer be able to subscribe to <strong>{tier.name}</strong> and it will be removed from the list of available tiers in portal.</div>
|
||||||
<div>Existing members on this tier will remain unchanged.</div>
|
<div>Existing members on this tier will remain unchanged. Offers using this tier will be disabled.</div>
|
||||||
</> : <>
|
</> : <>
|
||||||
<div className='mb-6'>Reactivating <strong>{tier.name}</strong> will re-enable it as an option in portal and allow new members to subscribe to this tier.</div>
|
<div className='mb-6'>Reactivating <strong>{tier.name}</strong> will re-enable it as an option in portal and allow new members to subscribe to this tier.</div>
|
||||||
<div>Existing members will remain unchanged.</div>
|
<div>Existing members will remain unchanged.</div>
|
||||||
|
|
Loading…
Reference in a new issue