Skip to content

Commit

Permalink
Merge pull request #50 from kleros/refactor/bug-fixes
Browse files Browse the repository at this point in the history
Refactor/bug fixes
  • Loading branch information
Harman-singh-waraich authored Jul 24, 2024
2 parents d5b2f11 + e5011ad commit 91c47ac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion web/src/pages/Home/Stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ const Stats = () => {
},
{
title: "All time deposits",
text: `${formatUSD(ethDeposit * pricesData?.[CoinIds.ETH]?.price)}`,
text: `${
ethDeposit && pricesData?.[CoinIds.ETH]?.price
? formatUSD(ethDeposit * pricesData?.[CoinIds.ETH]?.price)
: "0$"
}`,
subtext: `${ethDeposit} ETH`,
color: "green",
icon: DollarIcon,
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/SubmitList/DeployList/ListDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const StyledP = styled.p`
const ChainContainer = styled.div`
display: flex;
gap: 8px;
align-items: top;
align-items: center;
justify-content: center;
`;

Expand Down
10 changes: 9 additions & 1 deletion web/src/pages/SubmitList/ListParameters/Policy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { toast } from "react-toastify";
import { OPTIONS as toastOptions } from "utils/wrapWithToast";
import { uploadFileToIPFS } from "utils/uploadFileToIPFS";
import { SUPPORTED_FILE_TYPES } from "src/consts";
import { getIpfsUrl } from "utils/getIpfsUrl";

const Container = styled.div`
display: flex;
Expand Down Expand Up @@ -64,7 +65,14 @@ const Policy: React.FC = () => {
Fundamental to any list, the List Policy provides users with a set of rules that define what is allowed, and
what isn’t allowed to be included in the list. Make sure to write it clearly, avoiding double interpretations.
<br />
<a href="/home">Check a Policy example</a> .
<a
href={getIpfsUrl("/ipfs/QmVcsLZYoXhzeM7S828aMK8Wh3VyUiSaKUG4YFYR2KjLyD/auditors-acceptance-policy-v1.pdf")}
target="_blank"
rel="noreferrer"
>
Check a Policy example
</a>{" "}
.
</StyledLabel>
<StyledFileUploader callback={handleFileUpload} variant="info" msg="You can add the List Policy file in PDF." />

Expand Down

0 comments on commit 91c47ac

Please sign in to comment.