mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add TxView, use width percentages instead of flex-grow for layout
This commit is contained in:
parent
92bd783e0c
commit
c876428044
53
ui/app/components/tx-view.js
Normal file
53
ui/app/components/tx-view.js
Normal file
@ -0,0 +1,53 @@
|
||||
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,
|
||||
// }
|
||||
// }
|
||||
|
||||
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', {
|
||||
}, [
|
||||
// tab
|
||||
h('div.flex-column', {
|
||||
|
||||
}, [
|
||||
h('div', {}, 'Transactions'),
|
||||
h('div', {
|
||||
style: {
|
||||
height: '0.5em',
|
||||
color: 'black',
|
||||
width: '100%',
|
||||
}
|
||||
})
|
||||
]),
|
||||
|
||||
// tab2
|
||||
])
|
||||
])
|
||||
// column
|
||||
// tab row
|
||||
// divider
|
||||
// item
|
||||
}
|
@ -28,7 +28,7 @@ WalletView.prototype.render = function () {
|
||||
|
||||
return h('div.wallet-view.flex-column', {
|
||||
style: {
|
||||
flexGrow: 1,
|
||||
width: '33.333%',
|
||||
height: '82vh',
|
||||
background: '#FAFAFA', // TODO: add to reusable colors
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ const Component = require('react').Component
|
||||
const h = require('react-hyperscript')
|
||||
const inherits = require('util').inherits
|
||||
const WalletView = require('./components/wallet-view')
|
||||
const TxView = require('./components/tx-view')
|
||||
|
||||
module.exports = MainContainer
|
||||
|
||||
@ -20,6 +21,7 @@ MainContainer.prototype.render = function () {
|
||||
zIndex: 20,
|
||||
boxShadow: '0 0 7px 0 rgba(0,0,0,0.08)',
|
||||
fontFamily: 'DIN OT',
|
||||
display: 'flex',
|
||||
}
|
||||
}, [
|
||||
h(WalletView, {
|
||||
@ -30,11 +32,12 @@ MainContainer.prototype.render = function () {
|
||||
}, [
|
||||
]),
|
||||
|
||||
h('div.tx-view', {
|
||||
h(TxView, {
|
||||
style: {
|
||||
width: '66.66%',
|
||||
height: '82vh',
|
||||
background: '#FFFFFF',
|
||||
// flexGrow: 2
|
||||
// width: '66.66%',
|
||||
// height: '82vh',
|
||||
// background: '#FFFFFF',
|
||||
}
|
||||
}, [
|
||||
]),
|
||||
|
Loading…
Reference in New Issue
Block a user