mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add "Add Token" button to side bar
This commit is contained in:
parent
3891cf1af6
commit
2871beebe6
@ -36,6 +36,7 @@ function mapDispatchToProps (dispatch) {
|
|||||||
showAccountDetailModal: () => {
|
showAccountDetailModal: () => {
|
||||||
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
|
dispatch(actions.showModal({ name: 'ACCOUNT_DETAILS' }))
|
||||||
},
|
},
|
||||||
|
showAddTokenPage: () => dispatch(actions.showAddTokenPage()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,6 +85,7 @@ WalletView.prototype.render = function () {
|
|||||||
keyrings,
|
keyrings,
|
||||||
showAccountDetailModal,
|
showAccountDetailModal,
|
||||||
hideSidebar,
|
hideSidebar,
|
||||||
|
showAddTokenPage,
|
||||||
} = this.props
|
} = this.props
|
||||||
// temporary logs + fake extra wallets
|
// temporary logs + fake extra wallets
|
||||||
// console.log('walletview, selectedAccount:', selectedAccount)
|
// console.log('walletview, selectedAccount:', selectedAccount)
|
||||||
@ -145,6 +147,9 @@ WalletView.prototype.render = function () {
|
|||||||
|
|
||||||
h(TokenList),
|
h(TokenList),
|
||||||
|
|
||||||
|
h('button.wallet-view__add-token-button', {
|
||||||
|
onClick: showAddTokenPage,
|
||||||
|
}, 'Add Token'),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,6 +107,19 @@ $wallet-view-bg: $wild-sand;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__add-token-button {
|
||||||
|
color: $dusty-gray;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 19px;
|
||||||
|
text-align: center;
|
||||||
|
margin: 36px auto 0;
|
||||||
|
border: 1px solid $dusty-gray;
|
||||||
|
border-radius: 2px;
|
||||||
|
font-weight: 300;
|
||||||
|
background: none;
|
||||||
|
padding: 9px 30px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 576px) {
|
@media screen and (min-width: 576px) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user