-
Notifications
You must be signed in to change notification settings - Fork 7
/
OrderBookContainer.js
44 lines (41 loc) · 1.16 KB
/
OrderBookContainer.js
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { OrderBook } from "../components";
class OrderBookContainer extends React.Component {
render() {
const {
orderList, loading, currency, style, pair
} = this.props;
return (
<div className="row">
<OrderBook
orderList={orderList}
bookName="Sell"
loading={loading}
currency={currency}
style={style}
pair={pair}
/>
<OrderBook
orderList={orderList}
bookName="Buy"
loading={loading}
currency={currency}
style={style}
pair={pair}
/>
</div>
)
}
}
OrderBookContainer.propTypes = {
bookName: PropTypes.string.isRequired,
loading: PropTypes.bool.isRequired,
decimalPoints: PropTypes.number
}
OrderBookContainer.defaultProps = {
loading: false,
decimalPoints: 4,
style: {}
}
export default OrderBookContainer;