-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1676 from kleros/feat/rewards-and-execution-indic…
…ators feat(web): ruling-and-rewards-indicators
- Loading branch information
Showing
5 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
web/src/pages/Cases/CaseDetails/Voting/RulingAndRewardsIndicators.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
import CheckCircle from "svgs/icons/check-circle-outline.svg"; | ||
import Coins from "svgs/icons/pile-coins.svg"; | ||
|
||
import Label from "components/DisputeView/CardLabels/Label"; | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
gap: 8px; | ||
flex-wrap: wrap; | ||
`; | ||
|
||
interface IRulingAndRewardsIndicators { | ||
jurorRewardsDispersed: boolean; | ||
ruled: boolean; | ||
} | ||
|
||
const RulingAndRewardsIndicators: React.FC<IRulingAndRewardsIndicators> = ({ jurorRewardsDispersed, ruled }) => ( | ||
<Container> | ||
{ruled ? <Label icon={CheckCircle} text="Ruling executed" color="green" /> : null} | ||
{jurorRewardsDispersed ? <Label icon={Coins} text="Juror rewards distributed" color="green" /> : null} | ||
</Container> | ||
); | ||
|
||
export default RulingAndRewardsIndicators; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters