diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 12:53:40 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-03 12:53:40 +0800 |
commit | b70a399faa30c478ffffb5607cfe36001745adc7 (patch) | |
tree | d252a02d6acda453ae29baffe9c4051cb4546f01 /ui/app/account-and-transaction-details.js | |
parent | 41250f9769d3224e0b42821058cd6445fa7efaca (diff) | |
download | tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar.gz tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar.bz2 tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar.lz tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar.xz tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.tar.zst tangerine-wallet-browser-b70a399faa30c478ffffb5607cfe36001745adc7.zip |
Isolate container component, add refactor notes
Diffstat (limited to 'ui/app/account-and-transaction-details.js')
-rw-r--r-- | ui/app/account-and-transaction-details.js | 39 |
1 files changed, 39 insertions, 0 deletions
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: { + } + }, [ + ]), + ]) +} + |