2017-06-06 23:19:12 +02:00
|
|
|
import React from "react";
|
|
|
|
import SubHeader from "component/subHeader";
|
|
|
|
import TransactionList from "component/transactionList";
|
|
|
|
import WalletAddress from "component/walletAddress";
|
|
|
|
import WalletSend from "component/walletSend";
|
2017-05-11 02:59:47 +02:00
|
|
|
|
2017-06-06 23:19:12 +02:00
|
|
|
import { CreditAmount } from "component/common";
|
2017-04-22 15:17:01 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const WalletPage = props => {
|
2017-06-06 23:19:12 +02:00
|
|
|
const { balance, currentPage } = props;
|
2017-04-22 15:17:01 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<main className="main--single-column">
|
2017-05-05 07:28:28 +02:00
|
|
|
<SubHeader />
|
2017-04-22 15:17:01 +02:00
|
|
|
<section className="card">
|
|
|
|
<div className="card__title-primary">
|
2017-05-26 08:40:35 +02:00
|
|
|
<h3>{__("Balance")}</h3>
|
2017-04-22 15:17:01 +02:00
|
|
|
</div>
|
|
|
|
<div className="card__content">
|
|
|
|
<CreditAmount amount={balance} precision={8} />
|
|
|
|
</div>
|
|
|
|
</section>
|
2017-06-06 23:19:12 +02:00
|
|
|
{currentPage === "wallet" ? <TransactionList {...props} /> : ""}
|
|
|
|
{currentPage === "send" ? <WalletSend {...props} /> : ""}
|
|
|
|
{currentPage === "receive" ? <WalletAddress /> : ""}
|
2017-04-22 15:17:01 +02:00
|
|
|
</main>
|
2017-06-06 23:19:12 +02:00
|
|
|
);
|
2017-06-06 06:21:55 +02:00
|
|
|
};
|
2017-04-22 15:17:01 +02:00
|
|
|
|
|
|
|
export default WalletPage;
|