Remove Onramper swap (#573)

It's not supported here, so removing to avoid confusion
This commit is contained in:
Justin Ehrenhofer 2022-10-28 11:21:58 -05:00 committed by GitHub
parent a4a9ca2e73
commit 12e7b45520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,8 @@ class OnRamperPage extends BasePage {
backgroundColor: darkMode backgroundColor: darkMode
? backgroundDarkColor ? backgroundDarkColor
: backgroundLightColor, : backgroundLightColor,
supportSell: false); supportSell: false,
supportSwap: false);
} }
} }
@ -38,6 +39,7 @@ class OnRamperPageBody extends StatefulWidget {
required this.wallet, required this.wallet,
required this.darkMode, required this.darkMode,
required this.supportSell, required this.supportSell,
required this.supportSwap,
required this.backgroundColor}); required this.backgroundColor});
static const baseUrl = 'widget.onramper.com'; static const baseUrl = 'widget.onramper.com';
@ -46,6 +48,7 @@ class OnRamperPageBody extends StatefulWidget {
final Color backgroundColor; final Color backgroundColor;
final bool darkMode; final bool darkMode;
final bool supportSell; final bool supportSell;
final bool supportSwap;
Uri get uri Uri get uri
=> Uri.https( => Uri.https(
@ -57,7 +60,8 @@ class OnRamperPageBody extends StatefulWidget {
'defaultFiat': settingsStore.fiatCurrency.title, 'defaultFiat': settingsStore.fiatCurrency.title,
'wallets': '${wallet.currency.title}:${wallet.walletAddresses.address}', 'wallets': '${wallet.currency.title}:${wallet.walletAddresses.address}',
'darkMode': darkMode.toString(), 'darkMode': darkMode.toString(),
'supportSell': supportSell.toString()}); 'supportSell': supportSell.toString(),
'supportSwap': supportSwap.toString()});
@override @override
OnRamperPageBodyState createState() => OnRamperPageBodyState(); OnRamperPageBodyState createState() => OnRamperPageBodyState();