Remove 'CanBeConfigured' from IProvider

This commit is contained in:
Ivan Yaremenchuk 2022-09-16 12:40:48 -05:00
parent 1f1341537d
commit 51d475a9bf
6 changed files with 1 additions and 6 deletions

View File

@ -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,

View File

@ -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();

View File

@ -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; }

View File

@ -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; }

View File

@ -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)

View File

@ -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)