diff --git a/.vscode/extensions.json b/.vscode/extensions.json index d2dcdfa..a7889ce 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,8 +1,7 @@ { "recommendations": [ "esbenp.prettier-vscode", - "christian-kohler.path-intellisense", - "eliostruyf.vscode-front-matter" + "christian-kohler.path-intellisense" ], "unwantedRecommendations": ["eamodio.gitlens"] } diff --git a/src/features/users/views/PatreonMembership.tsx b/src/features/users/views/PatreonMembership.tsx index 8499a5e..d3caed0 100644 --- a/src/features/users/views/PatreonMembership.tsx +++ b/src/features/users/views/PatreonMembership.tsx @@ -22,17 +22,26 @@ export function PatreonMembership(): JSX.Element | null { const hasLinkedPatreon = membership.patreonUserId !== null const _expirationDate = membership.expiresAt ? new Date(membership.expiresAt) : null const isPaidMember = membership.isSubscriptionTier + const isLifetime = membership.expiresAt === null && membership.patronStatus === 'gift_patron' + const isMember = isPaidMember || isLifetime + const patreonTierName = isPaidMember ? ( + `Patreon - ${patreonTiers[membership.currentTier].name}` + ) : ( + (none) + ) + const tierTitle = isLifetime ? 'Lifetime Membership' : patreonTierName + const perksTitle = isMember ? 'Unlocked Perks' : 'Account Limits' return (

- Patreon Membership: - {patreonTiers[membership.currentTier].name} - {isPaidMember && ( + Membership: + {tierTitle} + {isMember && (

- Entitled Rewards: + {perksTitle}: {membership.rewardMaxDexes} dexes {membership.rewardFeaturedStreamer ? ', featured streamer' : ''} @@ -85,7 +94,15 @@ export function PatreonMembership(): JSX.Element | null { )} - Link your Patreon account and become a patron to unlock extras in the website and Discord. + {!isMember && ( + <> + Link your Patreon account and subscribe to one of our plans to unlock extras in the website (e.g. more + dexes, early access to new features, etc.), and in Discord (special role and channel access). +
+
+ + )} + By linking your account, you will also be able to login to the website via Patreon.
)}