Skip to content

Commit 10db6b7

Browse files
committedDec 12, 2024··
chore: adjust icons, gap in court details component
1 parent cee02b7 commit 10db6b7

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed
 
Loading
Loading

‎web/src/pages/Courts/CourtDetails/StakePanel/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ const Container = styled.div`
2828
const StakingArea = styled.div`
2929
display: flex;
3030
flex-direction: column;
31-
gap: 24px;
31+
gap: 28px;
3232
`;
3333

3434
const TagArea = styled.div`
3535
display: flex;
3636
gap: 10px;
3737
`;
3838

39-
const InputArea = styled(TagArea)`
40-
flex-direction: column;
41-
`;
42-
4339
const TextArea = styled.div`
4440
color: ${({ theme }) => theme.primaryText};
4541
`;
4642

43+
const InputArea = styled(TagArea)`
44+
flex-direction: column;
45+
`;
46+
4747
const StakePanel: React.FC<{ courtName: string }> = ({ courtName = "General Court" }) => {
4848
const [amount, setAmount] = useState("");
4949
const [isActive, setIsActive] = useState<boolean>(true);

‎web/src/pages/Courts/CourtDetails/Stats.tsx

+19-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { useParams } from "react-router-dom";
77
import { Accordion } from "@kleros/ui-components-library";
88

99
import EthereumIcon from "svgs/icons/ethereum.svg";
10+
import EthereumVoteIcon from "svgs/icons/ethereum-vote.svg";
1011
import BalanceIcon from "svgs/icons/law-balance.svg";
12+
import BalanceWithHourglassIcon from "svgs/icons/law-balance-hourglass.svg";
13+
import JurorIcon from "svgs/icons/user.svg";
1114
import MinStake from "svgs/icons/min-stake.svg";
1215
import PNKIcon from "svgs/icons/pnk.svg";
1316
import PNKRedistributedIcon from "svgs/icons/redistributed-pnk.svg";
@@ -70,7 +73,6 @@ const StyledAllTimeText = styled.p`
7073
color: ${({ theme }) => theme.primaryText};
7174
margin: 0;
7275
font-size: 14px;
73-
font-weight: 600;
7476
`;
7577

7678
const StyledChartIcon = styled(ChartIcon)`
@@ -79,6 +81,18 @@ const StyledChartIcon = styled(ChartIcon)`
7981
}
8082
`;
8183

84+
const StyledEthereumVoteIcon = styled(EthereumVoteIcon)`
85+
height: 32px !important;
86+
`;
87+
88+
const StyledJurorIcon = styled(JurorIcon)`
89+
height: 15px !important;
90+
`;
91+
92+
const StyledBalanceWithHourglassIcon = styled(BalanceWithHourglassIcon)`
93+
height: 32px !important;
94+
`;
95+
8296
const AccordionContainer = styled.div`
8397
display: flex;
8498
flex-direction: column;
@@ -132,7 +146,7 @@ const stats: IStat[] = [
132146
},
133147
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.feeForJuror)) * (coinPrice ?? 0)),
134148
color: "blue",
135-
icon: EthereumIcon,
149+
icon: StyledEthereumVoteIcon,
136150
},
137151
{
138152
title: "PNK Staked",
@@ -146,7 +160,7 @@ const stats: IStat[] = [
146160
title: "Active Jurors",
147161
getText: (data) => data?.numberStakedJurors,
148162
color: "green",
149-
icon: PNKRedistributedIcon,
163+
icon: StyledJurorIcon,
150164
},
151165
{
152166
title: "Cases",
@@ -158,10 +172,10 @@ const stats: IStat[] = [
158172
title: "In Progress",
159173
getText: (data) => data?.numberDisputes - data?.numberClosedDisputes,
160174
color: "green",
161-
icon: BalanceIcon,
175+
icon: StyledBalanceWithHourglassIcon,
162176
},
163177
{
164-
title: "Total ETH paid",
178+
title: "ETH paid",
165179
coinId: 1,
166180
getText: (data) => `${formatETH(data?.paidETH)} ETH`,
167181
getSubtext: (data, coinPrice) => formatUSD(Number(formatUnitsWei(data?.paidETH)) * (coinPrice ?? 0)),

0 commit comments

Comments
 (0)
Please sign in to comment.