Skip to content

Commit

Permalink
Enable AO sending
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed Jan 21, 2025
1 parent 4722672 commit b7c7309
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/aoWebWallet/Shared/BalanceDataComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,11 @@
<MudSpacer />
<MudStack Justify="Justify.FlexEnd" Class="send-receive-buttons-mobile" Spacing="0" Row="true">

@if (BalanceDataVM.Token.TokenId != Constants.AoTokenId)
{
<MudTooltip Text="Deposit tokens" Arrow="true" Placement="Placement.Top">
<MudButton Variant="Variant.Filled" Size="Size.Small" Color="Color.Primary" EndIcon="@Icons.Material.Filled.ArrowDownward" aria-label="Receive" OnClick="()=>{Receive(BalanceDataVM);}"><span Class="d-none d-sm-flex">Receive</span></MudButton>
</MudTooltip>
}
<MudTooltip Text="Deposit tokens" Arrow="true" Placement="Placement.Top">
<MudButton Variant="Variant.Filled" Size="Size.Small" Color="Color.Primary" EndIcon="@Icons.Material.Filled.ArrowDownward" aria-label="Receive" OnClick="()=>{Receive(BalanceDataVM);}"><span Class="d-none d-sm-flex">Receive</span></MudButton>
</MudTooltip>

@if (CanSend && BalanceDataVM.Token.TokenId != Constants.AoTokenId)
@if (CanSend)
{
var hasBalance = BalanceDataVM.BalanceDataLoader.Data?.Balance ?? 0;
<MudTooltip Text="Withdraw tokens" Arrow="true" Placement="Placement.Bottom">
Expand Down

0 comments on commit b7c7309

Please sign in to comment.