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
3 changes: 3 additions & 0 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read
Expand Down
6 changes: 5 additions & 1 deletion src/components/governance/ProposalCardInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ function ProposalCardInfo({
month_remaining,
payment_type,
}) {
const isMainnet = process.env.REACT_APP_CHAIN_NETWORK === "main";
const blockbookBase = isMainnet
? "https://blockbook.syscoin.org"
: "https://blockbook-dev.syscoin.org";

/**
* Function that returns an html with the link or not of the proposal
Expand Down Expand Up @@ -79,7 +83,7 @@ function ProposalCardInfo({
<p style={{ lineBreak: "anywhere", lineHeight: "initial" }}>
Collateral hash:{" "}
<a
href={`https://chainz.cryptoid.info/sys/tx.dws?${proposal.ColHash}`}
href={`${blockbookBase}/tx/${proposal.ColHash}`}
target="_blank"
rel="noopener noreferrer"
>
Expand Down