aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-08-30 02:39:56 +0800
committerDan <danjm.com@gmail.com>2017-08-30 02:39:56 +0800
commitc605c9897d40f8fc2568b63d33cfc018635bcf25 (patch)
tree0ef0cebe952b2587fff55010bb15573ab0e60c88 /ui
parent5facba89ca8a106e7ae964f351ab532d9029e0f5 (diff)
downloadtangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar.gz
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar.bz2
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar.lz
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar.xz
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.tar.zst
tangerine-wallet-browser-c605c9897d40f8fc2568b63d33cfc018635bcf25.zip
Minor clean up.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/gas-tooltip.js7
-rw-r--r--ui/app/css/itcss/components/send.scss5
-rw-r--r--ui/app/send.js17
3 files changed, 12 insertions, 17 deletions
diff --git a/ui/app/components/gas-tooltip.js b/ui/app/components/gas-tooltip.js
index 29d1af4ad..68b7aea61 100644
--- a/ui/app/components/gas-tooltip.js
+++ b/ui/app/components/gas-tooltip.js
@@ -59,12 +59,7 @@ GasTooltip.prototype.render = function () {
const { position, title, children, className } = this.props
const { gasPrice, gasLimit } = this.state
- return h('div', {
- style: {
- display: 'flex',
- justifyContent: 'center',
- }
- }, [
+ return h('div.gas-tooltip', {}, [
h('div.gas-tooltip-close-area', {
onClick: this.onClose
}),
diff --git a/ui/app/css/itcss/components/send.scss b/ui/app/css/itcss/components/send.scss
index 8609fb399..507351cd1 100644
--- a/ui/app/css/itcss/components/send.scss
+++ b/ui/app/css/itcss/components/send.scss
@@ -148,6 +148,11 @@
position: relative;
}
+.gas-tooltip {
+ display: flex;
+ justify-content: center;
+}
+
.gas-tooltip-label {
font-size: 16px;
color: $tundora;
diff --git a/ui/app/send.js b/ui/app/send.js
index a65c51d30..848f53f7c 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -67,13 +67,10 @@ function SendTransactionScreen () {
}
this.back = this.back.bind(this)
- this.back = this.back.bind(this)
this.closeTooltip = this.closeTooltip.bind(this)
this.onSubmit = this.onSubmit.bind(this)
- this.onSubmit = this.onSubmit.bind(this)
this.recipientDidChange = this.recipientDidChange.bind(this)
this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
- this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
this.toggleTooltip = this.toggleTooltip.bind(this)
}
@@ -232,13 +229,11 @@ SendTransactionScreen.prototype.render = function () {
onClose: this.closeTooltip,
onFeeChange: ({gasLimit, gasPrice}) => {
this.setState({
- newTx: Object.assign(
- this.state.newTx,
- {
- gas: gasLimit,
- gasPrice,
- }
- ),
+ newTx: {
+ ...this.state.newTx,
+ gas: gasLimit,
+ gasPrice,
+ },
})
}
}),
@@ -287,7 +282,7 @@ SendTransactionScreen.prototype.render = function () {
}
}),
h('div.send-screen-gas-input-customize', {
- onClick: () => this.toggleTooltip.bind(this)(!this.state.tooltipIsOpen),
+ onClick: this.toggleTooltip,
}, [
'Customize'
]),