chore(join): drop unused contributionOptions + formatTierAmount label param
This commit is contained in:
parent
673f881b54
commit
748a84d001
1 changed files with 5 additions and 10 deletions
|
|
@ -121,14 +121,14 @@
|
|||
<h2>Pay what you can</h2>
|
||||
<ul class="tier-list">
|
||||
<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>
|
||||
<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)
|
||||
</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>
|
||||
<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
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -420,7 +420,6 @@
|
|||
import { reactive, ref, computed, onMounted, onUnmounted } from "vue";
|
||||
import { getCircleOptions } from "~/config/circles";
|
||||
import {
|
||||
getContributionOptions,
|
||||
requiresPayment,
|
||||
getContributionTierByValue,
|
||||
getTierAmount,
|
||||
|
|
@ -467,9 +466,6 @@ const paymentToken = ref(null);
|
|||
// Circle options from central config
|
||||
const circleOptions = getCircleOptions();
|
||||
|
||||
// Contribution options from central config
|
||||
const contributionOptions = getContributionOptions();
|
||||
|
||||
// Minimal labels for the dropdown — reactive to cadence.
|
||||
const contributionItems = computed(() => {
|
||||
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, label) => {
|
||||
const formatTierAmount = (value) => {
|
||||
const tier = getContributionTierByValue(value);
|
||||
if (!tier || tier.amount === 0) return "$0";
|
||||
const amt = getTierAmount(tier, cadence.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue