aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-08-29 22:50:48 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-08-31 19:16:07 +0800
commite7b3ef0708290a81dad5c469adaa6fab3f1c45b5 (patch)
tree29f471ff840cf3eb97af77de45eb136a703e7aa6 /ui/app/components/modals
parent3ea841e27621a8e9972677e46dbd8e3f0c002632 (diff)
downloadtangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.tar.gz
tangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.tar.zst
tangerine-wallet-browser-e7b3ef0708290a81dad5c469adaa6fab3f1c45b5.zip
Lint fixes
Diffstat (limited to 'ui/app/components/modals')
-rw-r--r--ui/app/components/modals/account-details-modal.js8
-rw-r--r--ui/app/components/modals/buy-options-modal.js6
-rw-r--r--ui/app/components/modals/edit-account-name-modal.js2
-rw-r--r--ui/app/components/modals/index.js2
-rw-r--r--ui/app/components/modals/modal.js12
-rw-r--r--ui/app/components/modals/new-account-modal.js6
6 files changed, 18 insertions, 18 deletions
diff --git a/ui/app/components/modals/account-details-modal.js b/ui/app/components/modals/account-details-modal.js
index 3ed702192..fb0e70397 100644
--- a/ui/app/components/modals/account-details-modal.js
+++ b/ui/app/components/modals/account-details-modal.js
@@ -37,7 +37,7 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(AccountDetailsModa
// fonts of qr-header and close button
AccountDetailsModal.prototype.render = function () {
- const { selectedIdentity, selectedAddress, network } = this.props
+ const { selectedIdentity, network } = this.props
return h('div', {}, [
h('div.account-details-modal-wrapper', {
@@ -63,12 +63,12 @@ AccountDetailsModal.prototype.render = function () {
Qr: {
message: this.props.selectedIdentity.name,
data: this.props.selectedIdentity.address,
- }
+ },
}, []),
// divider
h('div.account-details-modal-divider', {
- style: {}
+ style: {},
}, []),
h('button.btn-clear', {
@@ -85,6 +85,6 @@ AccountDetailsModal.prototype.render = function () {
'Export private key',
]),
- ])
+ ]),
])
}
diff --git a/ui/app/components/modals/buy-options-modal.js b/ui/app/components/modals/buy-options-modal.js
index 6e0831768..79bbc798b 100644
--- a/ui/app/components/modals/buy-options-modal.js
+++ b/ui/app/components/modals/buy-options-modal.js
@@ -18,7 +18,7 @@ function mapDispatchToProps (dispatch) {
},
hideModal: () => {
dispatch(actions.hideModal())
- }
+ },
}
}
@@ -71,7 +71,7 @@ BuyOptions.prototype.render = function () {
background: 'white',
},
onClick: () => { this.props.hideModal() },
- }, h('div.buy-modal-content-footer#buy-modal-content-footer-text',{}, 'Cancel')),
- ])
+ }, h('div.buy-modal-content-footer#buy-modal-content-footer-text', {}, 'Cancel')),
+ ]),
])
}
diff --git a/ui/app/components/modals/edit-account-name-modal.js b/ui/app/components/modals/edit-account-name-modal.js
index ae5ca23d4..5c25ac245 100644
--- a/ui/app/components/modals/edit-account-name-modal.js
+++ b/ui/app/components/modals/edit-account-name-modal.js
@@ -71,6 +71,6 @@ EditAccountNameModal.prototype.render = function () {
'SAVE',
]),
- ])
+ ]),
])
}
diff --git a/ui/app/components/modals/index.js b/ui/app/components/modals/index.js
index e2e367af0..1db1d33d4 100644
--- a/ui/app/components/modals/index.js
+++ b/ui/app/components/modals/index.js
@@ -2,4 +2,4 @@ const Modal = require('./modal')
module.exports = {
Modal,
-} \ No newline at end of file
+}
diff --git a/ui/app/components/modals/modal.js b/ui/app/components/modals/modal.js
index fdff4c99e..d266fe790 100644
--- a/ui/app/components/modals/modal.js
+++ b/ui/app/components/modals/modal.js
@@ -80,7 +80,7 @@ const MODALS = {
contents: [],
mobileModalStyle: {},
laptopModalStyle: {},
- }
+ },
}
const BACKDROPSTYLE = {
@@ -120,7 +120,7 @@ Modal.prototype.render = function () {
{
className: 'modal',
keyboard: false,
- onHide: () => {this.onHide()},
+ onHide: () => { this.onHide() },
ref: (ref) => {
this.modalRef = ref
},
@@ -131,7 +131,7 @@ Modal.prototype.render = function () {
)
}
-Modal.prototype.componentWillReceiveProps = function(nextProps) {
+Modal.prototype.componentWillReceiveProps = function (nextProps) {
if (nextProps.active) {
this.show()
} else if (this.props.active) {
@@ -139,17 +139,17 @@ Modal.prototype.componentWillReceiveProps = function(nextProps) {
}
}
-Modal.prototype.onHide = function() {
+Modal.prototype.onHide = function () {
if (this.props.onHideCallback) {
this.props.onHideCallback()
}
this.props.hideModal()
}
-Modal.prototype.hide = function() {
+Modal.prototype.hide = function () {
this.modalRef.hide()
}
-Modal.prototype.show = function() {
+Modal.prototype.show = function () {
this.modalRef.show()
}
diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js
index c44b79a2e..3caa515cd 100644
--- a/ui/app/components/modals/new-account-modal.js
+++ b/ui/app/components/modals/new-account-modal.js
@@ -38,14 +38,14 @@ NewAccountModal.prototype.render = function () {
]),
h('div.modal-close-x', {}),
-
+
h('div.new-account-modal-content', {}, [
'Account Name',
]),
h('div.new-account-input-wrapper', {}, [
h('input.new-account-input', {
- placeholder: 'E.g. My new account'
+ placeholder: 'E.g. My new account',
}, []),
]),
@@ -62,6 +62,6 @@ NewAccountModal.prototype.render = function () {
'SAVE',
]),
]),
- ])
+ ]),
])
}