aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-view/transaction-view.component.js
blob: 7014ca17396568cc3f7ea531fe81c327b81eeae1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import Media from 'react-media'
import MenuBar from '../menu-bar'
import TransactionViewBalance from '../transaction-view-balance'
import TransactionList from '../transaction-list'

export default class TransactionView extends PureComponent {
  static contextTypes = {
    t: PropTypes.func,
  }

  render () {
    return (
      <div className="transaction-view">
        <Media
          query="(max-width: 575px)"
          render={() => <MenuBar />}
        />
        <div className="transaction-view__balance-wrapper">
          <TransactionViewBalance />
        </div>
        <TransactionList />
      </div>
    )
  }
}