diff --git a/web/app/(app)/contribute/page.tsx b/web/app/(app)/contribute/page.tsx index ada61c5..84d2d32 100644 --- a/web/app/(app)/contribute/page.tsx +++ b/web/app/(app)/contribute/page.tsx @@ -30,35 +30,8 @@ import { DialogTitle, DialogTrigger, } from '@/components/ui/dialog' - -const cryptoWallets = [ - { - name: 'Bitcoin (BTC)', - address: 'bc1qhffsnhp8ynqy6xvh982cu0x5w7vguuum3nqae9', - network: 'Bitcoin', - }, - { - name: 'Ethereum (ETH)', - address: '0xDB8560a42bdaa42C58462C6b2ee5A7D36F1c1f2a', - network: 'Ethereum (ERC20)', - }, - { - name: 'Tether (USDT)', - address: '0xDB8560a42bdaa42C58462C6b2ee5A7D36F1c1f2a', - network: 'Ethereum (ERC20)', - }, - // { - // name: 'Tether (USDT)', - // address: 'TD6txzY61D6EgnVfMLPsqKhYfyV5iHrbkw', - // network: 'Tron (TRC20)', - // }, - { - name: 'Monero (XMR)', - address: - '856J5eHJM7bgBhkc51oCuMYUGKvUvF1zwAWrQsqwuH1shG9qnX4YkoZbMmhCPep1JragY2W1hpzAnDda6BXvCgZxUJhUyTg', - network: 'Monero (XMR)', - }, -] +import { CRYPTO_ADDRESSES } from '@/lib/constants' +import Image from 'next/image' export default function ContributePage() { const { toast } = useToast() @@ -153,17 +126,16 @@ export default function ContributePage() {
- {cryptoWallets.map((wallet, index) => ( + {CRYPTO_ADDRESSES.map((wallet, index) => (
- {wallet.name.includes('Bitcoin') ? ( - - ) : wallet.name.includes('Ethereum') ? ( - - ) : ( - - )}{' '} + {wallet.name} {wallet.name} +
+

{wallet.address}

-
))} diff --git a/web/lib/constants.ts b/web/lib/constants.ts index 9967356..0aa03fb 100644 --- a/web/lib/constants.ts +++ b/web/lib/constants.ts @@ -1,3 +1,37 @@ export const WEBHOOK_EVENTS = { MESSAGE_RECEIVED: 'MESSAGE_RECEIVED', } as const + +export const CRYPTO_ADDRESSES = [ + { + name: 'Bitcoin (BTC)', + address: 'bc1q3zt8fc48psqqlranlkn68rf5mzuyuh7vd62vs3', + network: 'Bitcoin', + icon: '/crypto/btc.svg', + }, + { + name: 'Ethereum (ETH)', + address: '0x568541d7d566eB064D1e8bCd83843bF3970B92c1', + network: 'Ethereum', + icon: '/crypto/eth.svg', + }, + { + name: 'Tether (USDT)', + address: '0x568541d7d566eB064D1e8bCd83843bF3970B92c1', + network: 'Ethereum (ERC-20)', + icon: '/crypto/usdt.svg', + }, + { + name: 'Solana (SOL)', + address: 'C6puH6rD6D7BgbRt8NPpkD62fMnPGQvYUKDiA1eUUjGZ', + network: 'Solana', + icon: '/crypto/sol.svg', + }, + { + name: 'Monero (XMR)', + address: + '856J5eHJM7bgBhkc51oCuMYUGKvUvF1zwAWrQsqwuH1shG9qnX4YkoZbMmhCPep1JragY2W1hpzAnDda6BXvCgZxUJhUyTg', + network: 'Monero', + icon: '/crypto/xmr.svg', + }, +] diff --git a/web/public/crypto/btc.svg b/web/public/crypto/btc.svg new file mode 100644 index 0000000..05b4f57 --- /dev/null +++ b/web/public/crypto/btc.svg @@ -0,0 +1,31 @@ + + + + + diff --git a/web/public/crypto/eth.svg b/web/public/crypto/eth.svg new file mode 100644 index 0000000..b80f0f7 --- /dev/null +++ b/web/public/crypto/eth.svg @@ -0,0 +1,11 @@ + + + + + + + + + + diff --git a/web/public/crypto/sol.svg b/web/public/crypto/sol.svg new file mode 100644 index 0000000..52c92a0 --- /dev/null +++ b/web/public/crypto/sol.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + diff --git a/web/public/crypto/usdt.svg b/web/public/crypto/usdt.svg new file mode 100644 index 0000000..0cf9bfe --- /dev/null +++ b/web/public/crypto/usdt.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/web/public/crypto/xmr.svg b/web/public/crypto/xmr.svg new file mode 100644 index 0000000..ffaab48 --- /dev/null +++ b/web/public/crypto/xmr.svg @@ -0,0 +1,13 @@ + + + + + + +