From b70a399faa30c478ffffb5607cfe36001745adc7 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Wed, 2 Aug 2017 21:53:40 -0700 Subject: Isolate container component, add refactor notes --- ui/app/account-and-transaction-details.js | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ui/app/account-and-transaction-details.js (limited to 'ui/app/account-and-transaction-details.js') diff --git a/ui/app/account-and-transaction-details.js b/ui/app/account-and-transaction-details.js new file mode 100644 index 000000000..9386b2314 --- /dev/null +++ b/ui/app/account-and-transaction-details.js @@ -0,0 +1,39 @@ +const Component = require('react').Component +const h = require('react-hyperscript') +const inherits = require('util').inherits +// Main Views +const TxView = require('./components/tx-view') +const WalletView = require('./components/wallet-view') + +module.exports = AccountAndTransactionDetails + +inherits(AccountAndTransactionDetails, Component) +function AccountAndTransactionDetails () { + Component.call(this) +} + +AccountAndTransactionDetails.prototype.render = function () { + console.log('atdR') + return h('div', { + style: { + display: 'flex', + flex: '1 0 auto', + }, + }, [ + // wallet + h(WalletView, { + style: { + }, + responsiveDisplayClassname: '.lap-visible', + }, [ + ]), + + // transaction + h(TxView, { + style: { + } + }, [ + ]), + ]) +} + -- cgit v1.2.3 From 3ed81847d1b6f00e208dbcb973cafcc633c268ad Mon Sep 17 00:00:00 2001 From: sdtsui Date: Wed, 2 Aug 2017 23:54:21 -0700 Subject: Isolate routing logic for isUnlocked, remove stray logs --- ui/app/account-and-transaction-details.js | 1 - 1 file changed, 1 deletion(-) (limited to 'ui/app/account-and-transaction-details.js') diff --git a/ui/app/account-and-transaction-details.js b/ui/app/account-and-transaction-details.js index 9386b2314..03f2d9db5 100644 --- a/ui/app/account-and-transaction-details.js +++ b/ui/app/account-and-transaction-details.js @@ -13,7 +13,6 @@ function AccountAndTransactionDetails () { } AccountAndTransactionDetails.prototype.render = function () { - console.log('atdR') return h('div', { style: { display: 'flex', -- cgit v1.2.3 From e7b3ef0708290a81dad5c469adaa6fab3f1c45b5 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 29 Aug 2017 12:20:48 -0230 Subject: Lint fixes --- ui/app/account-and-transaction-details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/app/account-and-transaction-details.js') diff --git a/ui/app/account-and-transaction-details.js b/ui/app/account-and-transaction-details.js index 03f2d9db5..60293de77 100644 --- a/ui/app/account-and-transaction-details.js +++ b/ui/app/account-and-transaction-details.js @@ -30,7 +30,7 @@ AccountAndTransactionDetails.prototype.render = function () { // transaction h(TxView, { style: { - } + }, }, [ ]), ]) -- cgit v1.2.3