File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
examples/with-sdk-js/src/app
packages/react-wallet-kit/src Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ export default function AuthPage() {
179179 await turnkey . handleOnRamp ( {
180180 onrampProvider : "FIAT_ON_RAMP_PROVIDER_MOONPAY" ,
181181 walletAccount : evmAccount ,
182- openInNewTab : true ,
183182 cryptoCurrencyCode : "FIAT_ON_RAMP_CRYPTO_CURRENCY_ETH" ,
184183 sandboxMode : true ,
185184 } ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ type OnRampPageProps = {
99 action : ( ) => Promise < void > ;
1010 completed : boolean ;
1111 successPageDuration ?: number ;
12+ sandboxMode ?: boolean ;
1213 onSuccess ?: ( ) => void ;
1314 onError ?: ( error : any ) => void ;
1415} ;
@@ -19,6 +20,7 @@ export function OnRampPage({
1920 action,
2021 completed,
2122 successPageDuration = 2000 ,
23+ sandboxMode = false ,
2224 onSuccess,
2325 onError,
2426} : OnRampPageProps ) {
@@ -69,6 +71,11 @@ export function OnRampPage({
6971 ? "Use the Coinbase popup to finish funding your account."
7072 : "Use the MoonPay popup to finish funding your account." }
7173 </ div >
74+ { sandboxMode && (
75+ < div className = "mt-2 text-xs text-blue-500 dark:text-blue-400" >
76+ Sandbox mode — no real funds will be used.
77+ </ div >
78+ ) }
7279 </ div >
7380 ) ;
7481}
Original file line number Diff line number Diff line change @@ -5279,7 +5279,7 @@ export const ClientProvider: React.FC<ClientProviderProps> = ({
52795279 countryCode,
52805280 onrampProvider = "FIAT_ON_RAMP_PROVIDER_MOONPAY" ,
52815281 sandboxMode = true ,
5282- successPageDuration = 5000 ,
5282+ successPageDuration = 2000 ,
52835283 openInNewTab = false ,
52845284 } = params ;
52855285
@@ -5450,6 +5450,7 @@ export const ClientProvider: React.FC<ClientProviderProps> = ({
54505450 }
54515451 onrampProvider = { onrampProvider }
54525452 action = { action }
5453+ sandboxMode = { sandboxMode }
54535454 completed = { completed }
54545455 successPageDuration = { successPageDuration }
54555456 onSuccess = { ( ) => resolve ( ) }
You can’t perform that action at this time.
0 commit comments