-
Notifications
You must be signed in to change notification settings - Fork 7
/
HomePage.js
61 lines (56 loc) · 2.48 KB
/
HomePage.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import React, {Component} from 'react';
import { CoinSearchContainer, DepthChartContainer, OrderBookContainer,
OrderFormContainer, TradeHistoryContainer, OrdersStats} from "./index";
import * as orderList from "../jsons/ordersList.json";
import * as coinsList from "../jsons/coinsList.json";
import * as tradeHistory from "../jsons/tradeHistory.json";
import * as bidAsk from "../jsons/bidAsk.json";
class HomePage extends React.Component {
render() {
return (
<div className="home-page">
<div style={{display: 'flex', justifyContent: 'space-between'}}>
<div className="column" style={{width: '70%'}} >
<CoinSearchContainer loading={false} coinsList={coinsList.list} style={{margin: '10px'}}/>
<div className="row" style={{margin: '10px'}}>
<OrderFormContainer
askPrice={0.25}
bidPrice={0.29}
totalCurrBalance={10000}
totalPairBalance={10}
formName="Buy"
currency="XRP"
pair="BTC"
loggedIn={true}
/>
<OrderFormContainer
askPrice={0.0233}
bidPrice={1.234}
totalCurrBalance={2000}
totalPairBalance={600}
formName="Sell"
currency="XRP"
pair="BTC"
loggedIn={true}
/>
</div>
<OrdersStats
style={{width: '100%'}}
orderList={orderList.list}
bidAsk={bidAsk.list}
/>
</div>
<div className="column" style={{width: '30%'}} >
<TradeHistoryContainer
tradeHistory={tradeHistory.list}
loggedIn={true}
loading={false}
style={{margin: '10px'}}
/>
</div>
</div>
</div>
)
}
}
export default HomePage;