-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathStakingRewards.tsx
65 lines (55 loc) · 1.44 KB
/
StakingRewards.tsx
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
62
63
64
65
import React from "react";
import styled from "styled-components";
import { Box as _Box, Button } from "@kleros/ui-components-library";
import { EnsureChain } from "components/EnsureChain";
import WithHelpTooltip from "components/WithHelpTooltip";
import TokenRewards from "./TokenRewards";
const Container = styled.div`
display: flex;
flex-direction: column;
align-items: flex-start;
`;
const Box = styled(_Box)`
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
width: 270px;
height: auto;
border-radius: 3px;
`;
const UnclaimedContainer = styled.div`
display: flex;
flex-wrap: wrap;
gap: 4px;
`;
const ClaimPNK: React.FC = () => {
return (
<Box>
<UnclaimedContainer>
<label> Unclaimed: </label>
<small> 1,000 PNK </small>
</UnclaimedContainer>
<EnsureChain>
<Button small variant="tertiary" text="Claim" />
</EnsureChain>
</Box>
);
};
const tooltipMsg =
"Staking Rewards are the rewards won by staking your PNK on a court during " +
"the Kleros' Jurors incentive program.";
const Coherence: React.FC = () => {
return (
<Container>
<WithHelpTooltip place="bottom" {...{ tooltipMsg }}>
<label>
Staking Rewards: <small>APY 6%</small>
</label>
</WithHelpTooltip>
<TokenRewards token="PNK" amount="10,000" value="8,783" />
<ClaimPNK />
</Container>
);
};
export default Coherence;