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