lbry-desktop/src/renderer/component/rewardSummary/view.jsx

34 lines
820 B
React
Raw Normal View History

2017-08-20 23:42:00 +02:00
import React from "react";
import Link from "component/link";
import { CreditAmount } from "component/common";
const RewardSummary = props => {
const { balance, unclaimedRewardAmount } = props;
return (
<section className="card">
<div className="card__title-primary">
<h3>{__("Rewards")}</h3>
</div>
<div className="card__content">
2017-11-24 15:31:05 +01:00
{unclaimedRewardAmount > 0 && (
2017-08-20 23:42:00 +02:00
<p>
You have{" "}
<CreditAmount amount={unclaimedRewardAmount} precision={8} /> in
unclaimed rewards.
2017-11-24 15:31:05 +01:00
</p>
)}
2017-08-20 23:42:00 +02:00
</div>
2017-10-09 07:10:56 +02:00
<div className="card__actions">
<Link
button="primary"
navigate="/rewards"
label={__("Claim Rewards")}
/>
2017-08-20 23:42:00 +02:00
</div>
</section>
);
};
export default RewardSummary;