feat: link to governance (908) (#1138)

This commit is contained in:
Art 2022-08-30 15:48:04 +02:00 committed by GitHub
parent ebe3d36d3d
commit 76194bc642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -10,4 +10,5 @@ export const Links = {
DISCORD: 'https://vega.xyz/discord',
STAKING_GUIDE:
'https://docs.vega.xyz/docs/mainnet/concepts/vega-chain/#staking-on-vega',
GOVERNANCE_PAGE: 'https://vega.xyz/governance',
};

View File

@ -8,6 +8,7 @@ import type { Proposals_proposals } from '../../proposals/__generated__/Proposal
import Routes from '../../../routes';
import { Button } from '@vegaprotocol/ui-toolkit';
import { Link } from 'react-router-dom';
import { Links } from '../../../../config';
interface ProposalsListProps {
proposals: Proposals_proposals[];
@ -53,6 +54,21 @@ export const ProposalsList = ({ proposals }: ProposalsListProps) => {
<Button variant={'primary'}>{t('NewProposal')}</Button>
</Link>
</div>
<div>
<p>
{t(
`The Vega network is governed by the community. View active proposals, vote on them or propose changes to the network.`
)}{' '}
<a
href={Links.GOVERNANCE_PAGE}
className="underline text-white"
target="_blank"
rel="nofollow noreferrer"
>
{t(`Find out more about Vega governance`)}
</a>
</p>
</div>
{proposals.length > 0 && (
<ProposalsListFilter setFilterString={setFilterString} />