Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions web/src/assets/svgs/icons/min-stake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/src/assets/svgs/icons/redistributed-pnk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion web/src/assets/svgs/icons/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions web/src/assets/svgs/icons/vote-stake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions web/src/components/StatDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ const SVGContainer = styled.div<{ iconColor: string; backgroundColor: string }>`

svg {
fill: ${({ iconColor }) => iconColor};
max-height: 22px;
max-width: 22px;
max-height: 32px;
max-width: 32px;
}
`;

Expand Down
21 changes: 11 additions & 10 deletions web/src/pages/Courts/CourtDetails/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import PNKRedistributedIcon from "svgs/icons/redistributed-pnk.svg";
import JurorIcon from "svgs/icons/user.svg";
import BalanceIcon from "svgs/icons/law-balance.svg";
import MinStake from "svgs/icons/min-stake.svg";
import VoteStake from "svgs/icons/vote-stake.svg";

const StyledCard = styled.div`
width: auto;
Expand Down Expand Up @@ -47,15 +48,15 @@ const stats: IStat[] = [
(parseInt(utils.formatUnits(data?.minStake, 18)) * 0.029)
.toFixed(2)
.toString() + "$",
color: "blue",
icon: EthereumIcon,
color: "purple",
icon: VoteStake,
},
{
title: "Active Jurors",
getText: (data) => data?.numberStakedJurors,
getSubtext: () => "",
color: "purple",
icon: PNKRedistributedIcon,
color: "green",
icon: JurorIcon,
},
{
title: "PNK Staked",
Expand All @@ -64,8 +65,8 @@ const stats: IStat[] = [
(parseInt(utils.formatUnits(data?.stake, 18)) * 0.029)
.toFixed(2)
.toString() + "$",
color: "green",
icon: JurorIcon,
color: "purple",
icon: PNKIcon,
},
{
title: "Cases",
Expand All @@ -88,8 +89,8 @@ const stats: IStat[] = [
(parseInt(utils.formatUnits(data?.paidETH, 18)) * 1600)
.toFixed(2)
.toString() + "$",
color: "orange",
icon: BalanceIcon,
color: "blue",
icon: EthereumIcon,
},
{
title: "PNK redistributed",
Expand All @@ -98,8 +99,8 @@ const stats: IStat[] = [
(parseInt(utils.formatUnits(data?.paidPNK, 18)) * 0.029)
.toFixed(2)
.toString() + "$",
color: "orange",
icon: BalanceIcon,
color: "purple",
icon: PNKRedistributedIcon,
},
];

Expand Down