mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-24 19:46:16 +00:00
Remove Onramper swap (#573)
It's not supported here, so removing to avoid confusion
This commit is contained in:
parent
a4a9ca2e73
commit
12e7b45520
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue