frost display WU instead of vByte

This commit is contained in:
julian 2024-05-01 14:59:44 -06:00
parent ccca53f3d8
commit fc3ec6aa0a
2 changed files with 4 additions and 1 deletions

View file

@ -524,6 +524,7 @@ class _FrostSendViewState extends ConsumerState<FrostSendView> {
), ),
child: FeeSlider( child: FeeSlider(
coin: coin, coin: coin,
showWU: true,
onSatVByteChanged: (rate) { onSatVByteChanged: (rate) {
customFeeRate = rate; customFeeRate = rate;
}, },

View file

@ -9,9 +9,11 @@ class FeeSlider extends StatefulWidget {
super.key, super.key,
required this.onSatVByteChanged, required this.onSatVByteChanged,
required this.coin, required this.coin,
this.showWU = false,
}); });
final Coin coin; final Coin coin;
final bool showWU;
final void Function(int) onSatVByteChanged; final void Function(int) onSatVByteChanged;
@override @override
@ -34,7 +36,7 @@ class _FeeSliderState extends State<FeeSlider> {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
"sat/vByte", widget.showWU ? "sat/WU" : "sat/vByte",
style: STextStyles.smallMed12(context), style: STextStyles.smallMed12(context),
), ),
Text( Text(