Skip to content

Commit

Permalink
Merge pull request #15 from michielpost/feature/enable-ao-sending
Browse files Browse the repository at this point in the history
Enable AO sending
  • Loading branch information
michielpost authored Feb 7, 2025
2 parents 4722672 + b7c7309 commit 5503435
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 5503435

Please sign in to comment.