Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project creation refactor #163

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
20 changes: 9 additions & 11 deletions src/Angor/Client/Components/BalanceDisplay.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,13 @@
</div>

@code {
[Parameter]
public decimal BtcBalance { get; set; }
[Parameter] public decimal BtcBalance { get; set; }

[Parameter]
public string BtcBalanceInFiat { get; set; }
[Parameter] public string BtcBalanceInFiat { get; set; }

[Parameter]
public string PreferredCurrency { get; set; }
[Parameter] public string PreferredCurrency { get; set; }

[Parameter]
public bool ShowFiatInline { get; set; } = false;
[Parameter] public bool ShowFiatInline { get; set; } = false;

private Network _network;

Expand All @@ -34,9 +30,11 @@
base.OnInitialized();
}

private string GetTooltip() =>
PreferredCurrency != "BTC" && !string.IsNullOrEmpty(BtcBalanceInFiat) && !ShowFiatInline
private string GetTooltip()
{
return PreferredCurrency != "BTC" && !string.IsNullOrEmpty(BtcBalanceInFiat) && !ShowFiatInline
? $"Equivalent: {BtcBalanceInFiat}"
: string.Empty;
}
}

}
Loading
Loading