diff --git a/examples/react-wallet-kit/src/components/demo/DemoPanel.tsx b/examples/react-wallet-kit/src/components/demo/DemoPanel.tsx index 1ec0edb28..2026c34e9 100644 --- a/examples/react-wallet-kit/src/components/demo/DemoPanel.tsx +++ b/examples/react-wallet-kit/src/components/demo/DemoPanel.tsx @@ -53,6 +53,7 @@ export default function DemoPanel() { handleImportWallet, handleConnectExternalWallet, fetchWalletProviders, + handleOnRamp, } = useTurnkey(); const { pushPage } = useModal(); @@ -112,6 +113,18 @@ export default function DemoPanel() { } }, [wallets]); + const handleAddFunds = async () => { + try { + await handleOnRamp({ + onrampProvider: "FIAT_ON_RAMP_PROVIDER_MOONPAY", + walletAccount: selectedWalletAccount!, + sandboxMode: true, + }); + } catch (error) { + handleError(error); + } + }; + function truncateAddress(address: string) { return `${address.slice(0, 4)}...${address.slice(-4)}`; } @@ -385,6 +398,13 @@ export default function DemoPanel() { > Sign Message + + {selectedWallet?.source === WalletSource.Embedded && ( <>