mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-22 11:38:26 +00:00
Fix warnings
This commit is contained in:
parent
39944183f1
commit
c3ca42eb4f
@ -11,6 +11,8 @@ using NftFaucet.Plugins.Models;
|
||||
using NftFaucet.Plugins.Models.Abstraction;
|
||||
using Radzen;
|
||||
|
||||
#pragma warning disable CS8974
|
||||
|
||||
namespace NftFaucet.Pages;
|
||||
|
||||
public partial class CreateUploadDialog : BasicComponent
|
||||
|
@ -5,8 +5,9 @@ namespace NftFaucet.Pages;
|
||||
|
||||
public partial class IndexPage : BasicComponent
|
||||
{
|
||||
protected override async Task OnInitializedAsync()
|
||||
protected override Task OnInitializedAsync()
|
||||
{
|
||||
NavigationManager.NavigateToRelative("/networks");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ else if (State == MintingState.CheckingNetwork)
|
||||
<RadzenLink Icon="open_in_new" Path="@(new Uri(AppState.SelectedNetwork.ExplorerUrl, "tx/" + TransactionHash).ToString())" Text="@TransactionHash" Target="_blank"/>
|
||||
</p>
|
||||
<div style="display: flex; justify-content: end;">
|
||||
<RadzenButton Click="@(async (args) => await Close())" Text="Close" Disabled="@(!string.IsNullOrEmpty(ProgressBarText))" />
|
||||
<RadzenButton Click="@((args) => Close())" Text="Close" Disabled="@(!string.IsNullOrEmpty(ProgressBarText))" />
|
||||
</div>
|
||||
</RadzenContent>
|
||||
}
|
||||
|
@ -5,6 +5,8 @@ using NftFaucet.Domain.Utils;
|
||||
using NftFaucet.Plugins.Models;
|
||||
using NftFaucet.Plugins.Models.Abstraction;
|
||||
|
||||
#pragma warning disable CS4014
|
||||
|
||||
namespace NftFaucet.Pages;
|
||||
|
||||
public partial class MintDialog : BasicComponent
|
||||
@ -147,7 +149,7 @@ public partial class MintDialog : BasicComponent
|
||||
RefreshMediator.NotifyStateHasChangedSafe();
|
||||
}
|
||||
|
||||
private async Task Close()
|
||||
private void Close()
|
||||
{
|
||||
DialogService.Close(TransactionHash);
|
||||
}
|
||||
|
@ -6,6 +6,8 @@ using NftFaucet.Plugins.Models;
|
||||
using NftFaucet.Plugins.Models.Abstraction;
|
||||
using Radzen;
|
||||
|
||||
#pragma warning disable CS8974
|
||||
|
||||
namespace NftFaucet.Pages;
|
||||
|
||||
public partial class ProvidersPage : BasicComponent
|
||||
|
Loading…
x
Reference in New Issue
Block a user