aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/add-token.js
diff options
context:
space:
mode:
authorDavid Yoo <dyoo@uber.com>2018-04-04 00:38:27 +0800
committerDavid Yoo <dyoo@uber.com>2018-04-04 00:38:27 +0800
commit4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be (patch)
tree6eca22c934649ff05ad03142fdfb804de18ba034 /ui/app/add-token.js
parent3d2b32167b72e026a50929ba4007e67b5442b425 (diff)
downloadtangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar.gz
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar.bz2
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar.lz
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar.xz
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.tar.zst
tangerine-wallet-browser-4ddf5d2516acc2f2ffac3a36a7114b42d95ce4be.zip
Address feedback
Diffstat (limited to 'ui/app/add-token.js')
-rw-r--r--ui/app/add-token.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/ui/app/add-token.js b/ui/app/add-token.js
index ea4f75835..a73874320 100644
--- a/ui/app/add-token.js
+++ b/ui/app/add-token.js
@@ -56,6 +56,7 @@ inherits(AddTokenScreen, Component)
function AddTokenScreen () {
this.state = {
isShowingConfirmation: false,
+ isShowingInfoBox: true,
customAddress: '',
customSymbol: '',
customDecimals: '',
@@ -344,18 +345,22 @@ AddTokenScreen.prototype.displayTab = function (selectedTab) {
}
AddTokenScreen.prototype.renderTabs = function () {
- const { displayedTab, errors } = this.state
+ const { isShowingInfoBox, displayedTab, errors } = this.state
return displayedTab === 'CUSTOM_TOKEN'
? this.renderCustomForm()
: h('div', [
h('div.add-token__wrapper', [
h('div.add-token__content-container', [
- h('div.add-token__info-box', [
- h('div.add-token__info-box__close'),
+ isShowingInfoBox && h('div.add-token__info-box', [
+ h('div.add-token__info-box__close', {
+ onClick: () => this.setState({ isShowingInfoBox: false }),
+ }),
h('div.add-token__info-box__title', this.context.t('whatsThis')),
h('div.add-token__info-box__copy', this.context.t('keepTrackTokens')),
- h('div.add-token__info-box__copy--blue', this.context.t('learnMore')),
+ h('a.add-token__info-box__copy--blue', {
+ href: 'http://metamask.helpscoutdocs.com/article/16-managing-erc20-tokens',
+ }, this.context.t('learnMore')),
]),
h('div.add-token__input-container', [
h('input.add-token__input', {