chore(join): drop unused contributionOptions + formatTierAmount label param

This commit is contained in:
Jennie Robinson Faber 2026-04-18 18:04:54 +01:00
parent 673f881b54
commit 748a84d001

View file

@ -121,14 +121,14 @@
<h2>Pay what you can</h2> <h2>Pay what you can</h2>
<ul class="tier-list"> <ul class="tier-list">
<li><span class="tier-amt">$0</span> I need support right now</li> <li><span class="tier-amt">$0</span> I need support right now</li>
<li><span class="tier-amt">{{ formatTierAmount('5', '') }}</span> I can contribute</li> <li><span class="tier-amt">{{ formatTierAmount('5') }}</span> I can contribute</li>
<li> <li>
<span class="tier-amt">{{ formatTierAmount('15', '') }}</span> I can sustain the community <span class="tier-amt">{{ formatTierAmount('15') }}</span> I can sustain the community
(suggested) (suggested)
</li> </li>
<li><span class="tier-amt">{{ formatTierAmount('30', '') }}</span> I can support others too</li> <li><span class="tier-amt">{{ formatTierAmount('30') }}</span> I can support others too</li>
<li> <li>
<span class="tier-amt">{{ formatTierAmount('50', '') }}</span> I want to sponsor multiple <span class="tier-amt">{{ formatTierAmount('50') }}</span> I want to sponsor multiple
members members
</li> </li>
</ul> </ul>
@ -420,7 +420,6 @@
import { reactive, ref, computed, onMounted, onUnmounted } from "vue"; import { reactive, ref, computed, onMounted, onUnmounted } from "vue";
import { getCircleOptions } from "~/config/circles"; import { getCircleOptions } from "~/config/circles";
import { import {
getContributionOptions,
requiresPayment, requiresPayment,
getContributionTierByValue, getContributionTierByValue,
getTierAmount, getTierAmount,
@ -467,9 +466,6 @@ const paymentToken = ref(null);
// Circle options from central config // Circle options from central config
const circleOptions = getCircleOptions(); const circleOptions = getCircleOptions();
// Contribution options from central config
const contributionOptions = getContributionOptions();
// Minimal labels for the dropdown reactive to cadence. // Minimal labels for the dropdown reactive to cadence.
const contributionItems = computed(() => { const contributionItems = computed(() => {
return Object.values(CONTRIBUTION_TIERS).map((tier) => { return Object.values(CONTRIBUTION_TIERS).map((tier) => {
@ -482,8 +478,7 @@ const contributionItems = computed(() => {
}); });
}); });
// Format tier amount for display in tier list const formatTierAmount = (value) => {
const formatTierAmount = (value, label) => {
const tier = getContributionTierByValue(value); const tier = getContributionTierByValue(value);
if (!tier || tier.amount === 0) return "$0"; if (!tier || tier.amount === 0) return "$0";
const amt = getTierAmount(tier, cadence.value); const amt = getTierAmount(tier, cadence.value);