diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-08-28 06:02:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 06:02:07 +0800 |
commit | 4b17ec67ecd7c16b942fc49aedb8e53732adbb96 (patch) | |
tree | a75112b245f8ad7677cd2be425b13738e0e2f869 /ui/app/main-container.js | |
parent | 30e49b8545a33faf2f1d1451c9135c996a6816b0 (diff) | |
parent | 952edf695c167385e9d864c45bd889219c456e78 (diff) | |
download | tangerine-wallet-browser-4b17ec67ecd7c16b942fc49aedb8e53732adbb96.tar.gz tangerine-wallet-browser-4b17ec67ecd7c16b942fc49aedb8e53732adbb96.tar.zst tangerine-wallet-browser-4b17ec67ecd7c16b942fc49aedb8e53732adbb96.zip |
Merge pull request #4919 from MetaMask/refactor-tx-list
Refactor and Redesign Transaction List
Diffstat (limited to 'ui/app/main-container.js')
-rw-r--r-- | ui/app/main-container.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/ui/app/main-container.js b/ui/app/main-container.js deleted file mode 100644 index 8a0708025..000000000 --- a/ui/app/main-container.js +++ /dev/null @@ -1,49 +0,0 @@ -const Component = require('react').Component -const h = require('react-hyperscript') -const inherits = require('util').inherits -const AccountAndTransactionDetails = require('./account-and-transaction-details') -const Settings = require('./components/pages/settings') -const log = require('loglevel') - -import UnlockScreen from './components/pages/unlock-page' - -module.exports = MainContainer - -inherits(MainContainer, Component) -function MainContainer () { - Component.call(this) -} - -MainContainer.prototype.render = function () { - // 3. summarize: - // switch statement goes inside MainContainer, - // or a method in renderPrimary - // - pass resulting h() to MainContainer - // - error checking in separate func - // - router in separate func - const contents = { - component: AccountAndTransactionDetails, - key: 'account-detail', - style: {}, - } - - if (this.props.isUnlocked === false) { - switch (this.props.currentViewName) { - case 'config': - log.debug('rendering config screen from unlock screen.') - return h(Settings, {key: 'config'}) - default: - log.debug('rendering locked screen') - return h('.unlock-screen-container', {}, h(UnlockScreen, { key: 'locked' })) - } - } - - return h('div.main-container', { - style: contents.style, - }, [ - h(contents.component, { - key: contents.key, - }, []), - ]) -} - |