mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-24 12:38:30 +00:00
Remove 'CanBeConfigured' from IProvider
This commit is contained in:
parent
1f1341537d
commit
51d475a9bf
@ -40,7 +40,7 @@ public partial class ProvidersPage : BasicComponent
|
|||||||
|
|
||||||
private CardListItem MapCardListItem(IProvider provider)
|
private CardListItem MapCardListItem(IProvider provider)
|
||||||
{
|
{
|
||||||
var configuration = provider.CanBeConfigured ? provider.GetConfiguration() : null;
|
var configuration = provider.GetConfiguration();
|
||||||
return new CardListItem
|
return new CardListItem
|
||||||
{
|
{
|
||||||
Id = provider.Id,
|
Id = provider.Id,
|
||||||
|
@ -11,7 +11,6 @@ public interface IProvider
|
|||||||
public string ImageName { get; }
|
public string ImageName { get; }
|
||||||
public bool IsSupported { get; }
|
public bool IsSupported { get; }
|
||||||
|
|
||||||
public bool CanBeConfigured { get; }
|
|
||||||
public bool IsConfigured { get; }
|
public bool IsConfigured { get; }
|
||||||
|
|
||||||
public CardListItemProperty[] GetProperties();
|
public CardListItemProperty[] GetProperties();
|
||||||
|
@ -12,7 +12,6 @@ public class EthereumKeygenProvider : IProvider
|
|||||||
public string ShortName { get; } = "EthKeygen";
|
public string ShortName { get; } = "EthKeygen";
|
||||||
public string ImageName { get; } = "ecdsa.svg";
|
public string ImageName { get; } = "ecdsa.svg";
|
||||||
public bool IsSupported { get; } = true;
|
public bool IsSupported { get; } = true;
|
||||||
public bool CanBeConfigured { get; } = true;
|
|
||||||
public bool IsConfigured { get; private set; }
|
public bool IsConfigured { get; private set; }
|
||||||
public EthereumKey Key { get; private set; }
|
public EthereumKey Key { get; private set; }
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ public class SolanaKeygenProvider : IProvider
|
|||||||
public string ShortName { get; } = "SolKeygen";
|
public string ShortName { get; } = "SolKeygen";
|
||||||
public string ImageName { get; } = "ecdsa.svg";
|
public string ImageName { get; } = "ecdsa.svg";
|
||||||
public bool IsSupported { get; } = true;
|
public bool IsSupported { get; } = true;
|
||||||
public bool CanBeConfigured { get; } = true;
|
|
||||||
public bool IsConfigured { get; private set; }
|
public bool IsConfigured { get; private set; }
|
||||||
public SolanaKey Key { get; private set; }
|
public SolanaKey Key { get; private set; }
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ public class MetamaskProvider : IProvider
|
|||||||
public string ShortName { get; } = "Metamask";
|
public string ShortName { get; } = "Metamask";
|
||||||
public string ImageName { get; } = "metamask_fox.svg";
|
public string ImageName { get; } = "metamask_fox.svg";
|
||||||
public bool IsSupported { get; } = true;
|
public bool IsSupported { get; } = true;
|
||||||
public bool CanBeConfigured { get; } = true;
|
|
||||||
public bool IsConfigured { get; private set; }
|
public bool IsConfigured { get; private set; }
|
||||||
|
|
||||||
public Task Configure(CardListItemConfigurationObject[] items)
|
public Task Configure(CardListItemConfigurationObject[] items)
|
||||||
|
@ -10,7 +10,6 @@ public class PhantomProvider : IProvider
|
|||||||
public string ShortName { get; } = "Phantom";
|
public string ShortName { get; } = "Phantom";
|
||||||
public string ImageName { get; } = "phantom.svg";
|
public string ImageName { get; } = "phantom.svg";
|
||||||
public bool IsSupported { get; } = true;
|
public bool IsSupported { get; } = true;
|
||||||
public bool CanBeConfigured { get; } = true;
|
|
||||||
public bool IsConfigured { get; private set; }
|
public bool IsConfigured { get; private set; }
|
||||||
|
|
||||||
public Task Configure(CardListItemConfigurationObject[] items)
|
public Task Configure(CardListItemConfigurationObject[] items)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user