aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-12-01 17:13:15 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-12-01 17:15:01 +0800
commitf4e0f74a6df7b8ec89308e10757e7adc9929198f (patch)
treec571d5eddc4f097eab5d85494204a76a4e200286 /packages/instant/src/containers
parent502e9c7be48caafd7725451789f896efdaf17dac (diff)
downloaddexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.gz
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.bz2
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.lz
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.xz
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.tar.zst
dexon-sol-tools-f4e0f74a6df7b8ec89308e10757e7adc9929198f.zip
feat(instant): provide a custom wallet display name
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/connected_account_payment_method.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/containers/connected_account_payment_method.ts b/packages/instant/src/containers/connected_account_payment_method.ts
index e9327a288..bb68fdd57 100644
--- a/packages/instant/src/containers/connected_account_payment_method.ts
+++ b/packages/instant/src/containers/connected_account_payment_method.ts
@@ -20,6 +20,7 @@ export interface ConnectedAccountPaymentMethodProps {}
interface ConnectedState {
network: Network;
providerState: ProviderState;
+ walletDisplayName?: string;
}
interface ConnectedDispatch {
@@ -34,6 +35,7 @@ type FinalProps = ConnectedProps & ConnectedAccountPaymentMethodProps;
const mapStateToProps = (state: State, _ownProps: ConnectedAccountPaymentMethodProps): ConnectedState => ({
network: state.network,
providerState: state.providerState,
+ walletDisplayName: state.walletDisplayName,
});
const mapDispatchToProps = (
@@ -56,7 +58,7 @@ const mergeProps = (
...ownProps,
network: connectedState.network,
account: connectedState.providerState.account,
- walletName: connectedState.providerState.name,
+ walletDisplayName: connectedState.walletDisplayName || connectedState.providerState.name,
onUnlockWalletClick: () => connectedDispatch.unlockWalletAndDispatchToStore(connectedState.providerState),
onInstallWalletClick: () => {
const isMobile = envUtil.isMobileOperatingSystem();