1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/components/tx-view.js
2017-07-31 21:27:37 -07:00

72 lines
1.4 KiB
JavaScript

const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
const inherits = require('util').inherits
// const Identicon = require('./identicon')
// const AccountDropdowns = require('./account-dropdowns').AccountDropdowns
// const Content = require('./wallet-content-display')
module.exports = connect()(TxView)
// function mapStateToProps (state) {
// return {
// network: state.metamask.network,
// }
// }
//
const contentDivider = h('div', {
style: {
marginLeft: '1.3em',
marginRight: '1.3em',
height:'1px',
background:'#E7E7E7', // TODO: make custom color
},
})
inherits(TxView, Component)
function TxView () {
Component.call(this)
}
TxView.prototype.render = function () {
return h('div.tx-view.flex-column', {
style: {
width: '66.666%',
height: '82vh',
background: '#FFFFFF',
}
}, [
h('div.flex-row', {
style: {
margin: '1.8em 1.3em',
}
}, [
// tx-view-tab.js
h('div.flex-row', {
}, [
h('div', {
style: {
borderBottom: '0.07em solid black',
paddingBottom: '0.015em',
}
}, 'TRANSACTIONS'),
h('div', {
style: {
marginLeft: '2em',
}
}, 'TOKENS'),
]),
])
h('')
])
// column
// tab row
// divider
// item
}