Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions app/components/TransferForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export const TransferForm: React.FC<{
const { token, amount, recipientNetwork, recipientNetworkImageUrl } = watch();

// Get the Network object for the selected recipient network
const transferNetwork = networks.find(n => n.chain.name === recipientNetwork) || selectedNetwork;
const transferNetwork =
networks.find((n) => n.chain.name === recipientNetwork) || selectedNetwork;

const fetchedTokens: Token[] = allTokens[transferNetwork.chain.name] || [];
const tokens = fetchedTokens.map((token) => ({
Expand All @@ -93,9 +94,7 @@ export const TransferForm: React.FC<{
const recipientNetworks = networks
.filter((network) => {
if (useInjectedWallet) return true;
return (
network.chain.name !== "Celo"
);
return network.chain.name !== "Celo";
})
.map((network) => ({
name: network.chain.name,
Expand All @@ -112,7 +111,7 @@ export const TransferForm: React.FC<{
error,
} = useSmartWalletTransfer({
client: client ?? null,
selectedNetwork: transferNetwork, // Use the recipient's network, not global
selectedNetwork: transferNetwork, // Use the recipient's network, not global
user,
supportedTokens: fetchedTokens,
getAccessToken,
Expand Down Expand Up @@ -412,7 +411,9 @@ export const TransferForm: React.FC<{
: "text-gray-400 dark:text-white/30"
}`}
>
<img
<Image
width={500}
height={500}
src={recipientNetworkImageUrl}
alt={recipientNetwork}
className="h-6 w-6 rounded-full"
Expand Down
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const nextConfig = {
optimizeCss: true,
optimizePackageImports: ["@headlessui/react", "framer-motion"],
},
serverExternalPackages: ["mixpanel", "https-proxy-agent"],
serverExternalPackages: ["mixpanel", "https-proxy-agent", "rate-limiter-flexible"],
webpack: (config, { isServer }) => {
// Handle both client and server-side fallbacks
config.resolve.fallback = {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@sanity/client": "^7.8.1",
"@sanity/image-url": "^1.1.0",
"@sentry/nextjs": "^10.29.0",
"@solana-program/token": "0.6.0",
"@supabase/supabase-js": "^2.50.0",
"@tanstack/react-query": "^5.80.7",
"@thirdweb-dev/auth": "^4.1.97",
Expand All @@ -53,6 +54,7 @@
"date-fns": "^4.1.0",
"framer-motion": "^11.18.2",
"hugeicons-react": "^0.3.0",
"import-in-the-middle": "^2.0.0",
"jose": "^6.0.11",
"js-cookie": "^3.0.5",
"jsencrypt": "^3.3.2",
Expand All @@ -71,6 +73,7 @@
"react-hook-form": "^7.57.0",
"react-icons": "^5.5.0",
"react-qrcode-logo": "^3.0.0",
"require-in-the-middle": "^8.0.1",
"sanity": "^4.4.1",
"sonner": "^1.7.4",
"styled-components": "^6.1.19",
Expand Down Expand Up @@ -111,7 +114,8 @@
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"react": "^19.0.1",
"react-dom": "^19.0.1"
"react-dom": "^19.0.1",
"@solana/kit": "^3.0.3"
}
},
"browser": {
Expand Down
Loading
Loading