2017-08-17 22:19:29 +02:00
|
|
|
import React from "react";
|
|
|
|
import Link from "component/link";
|
|
|
|
import { CreditAmount } from "component/common";
|
|
|
|
|
|
|
|
const WalletBalance = props => {
|
|
|
|
const { balance, navigate } = props;
|
2017-08-20 23:42:00 +02:00
|
|
|
/*
|
|
|
|
<div className="help">
|
|
|
|
<Link
|
|
|
|
onClick={() => navigate("/backup")}
|
|
|
|
label={__("Backup Your Wallet")}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
*/
|
2017-08-17 22:19:29 +02:00
|
|
|
return (
|
|
|
|
<section className="card">
|
|
|
|
<div className="card__title-primary">
|
|
|
|
<h3>{__("Balance")}</h3>
|
|
|
|
</div>
|
|
|
|
<div className="card__content">
|
|
|
|
{balance && <CreditAmount amount={balance} precision={8} />}
|
|
|
|
</div>
|
|
|
|
<div className="card__content">
|
2017-08-20 23:42:00 +02:00
|
|
|
<Link button="text" navigate="/send" label={__("Send")} />
|
|
|
|
<Link button="text" navigate="/receive" label={__("Receive")} />
|
|
|
|
<Link
|
|
|
|
button="text"
|
|
|
|
navigate="/backup"
|
|
|
|
label={__("Backup Your Wallet")}
|
|
|
|
/>
|
2017-08-17 22:19:29 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default WalletBalance;
|