2018-07-31 07:03:20 +02:00
|
|
|
import React, { PureComponent } from 'react'
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
import Media from 'react-media'
|
|
|
|
import MenuBar from '../menu-bar'
|
2018-08-24 01:44:38 +02:00
|
|
|
import TransactionViewBalance from '../transaction-view-balance'
|
2018-07-31 07:03:20 +02:00
|
|
|
import TransactionList from '../transaction-list'
|
|
|
|
|
2018-08-24 01:44:38 +02:00
|
|
|
export default class TransactionView extends PureComponent {
|
2018-07-31 07:03:20 +02:00
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
|
|
|
}
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2018-08-24 01:44:38 +02:00
|
|
|
<div className="transaction-view">
|
2018-07-31 07:03:20 +02:00
|
|
|
<Media
|
|
|
|
query="(max-width: 575px)"
|
|
|
|
render={() => <MenuBar />}
|
|
|
|
/>
|
2018-08-24 01:44:38 +02:00
|
|
|
<div className="transaction-view__balance-wrapper">
|
|
|
|
<TransactionViewBalance />
|
2018-07-31 07:03:20 +02:00
|
|
|
</div>
|
|
|
|
<TransactionList />
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|