Skip to content

Commit

Permalink
checkout: show mana only first
Browse files Browse the repository at this point in the history
  • Loading branch information
mantikoros committed Oct 16, 2024
1 parent 7f29bbc commit 015964f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions web/components/gidx/twomba-funds-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,19 @@ export function TwombaFundsSelector(props: {
</>
)}
<div className="grid grid-cols-2 gap-4 gap-y-6">
{prices.map((amounts, index) => (
<PriceTile
key={`price-tile-${amounts.mana}`}
amounts={amounts}
index={index}
loadingPrice={loadingPrice}
disabled={pastLimit}
user={user}
onClick={() => onSelectPriceInDollars(amounts.priceInDollars)}
/>
))}
{prices
.sort((a, b) => a.bonusInDollars - b.bonusInDollars)
.map((amounts, index) => (
<PriceTile
key={`price-tile-${amounts.mana}`}
amounts={amounts}
index={index}
loadingPrice={loadingPrice}
disabled={pastLimit}
user={user}
onClick={() => onSelectPriceInDollars(amounts.priceInDollars)}
/>
))}
</div>
{pastLimit && (
<AlertBox title="Purchase limit" className="my-4">
Expand Down

0 comments on commit 015964f

Please sign in to comment.