feat: link to governance (908) (#1138)
This commit is contained in:
parent
ebe3d36d3d
commit
76194bc642
@ -10,4 +10,5 @@ export const Links = {
|
|||||||
DISCORD: 'https://vega.xyz/discord',
|
DISCORD: 'https://vega.xyz/discord',
|
||||||
STAKING_GUIDE:
|
STAKING_GUIDE:
|
||||||
'https://docs.vega.xyz/docs/mainnet/concepts/vega-chain/#staking-on-vega',
|
'https://docs.vega.xyz/docs/mainnet/concepts/vega-chain/#staking-on-vega',
|
||||||
|
GOVERNANCE_PAGE: 'https://vega.xyz/governance',
|
||||||
};
|
};
|
||||||
|
@ -8,6 +8,7 @@ import type { Proposals_proposals } from '../../proposals/__generated__/Proposal
|
|||||||
import Routes from '../../../routes';
|
import Routes from '../../../routes';
|
||||||
import { Button } from '@vegaprotocol/ui-toolkit';
|
import { Button } from '@vegaprotocol/ui-toolkit';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
import { Links } from '../../../../config';
|
||||||
|
|
||||||
interface ProposalsListProps {
|
interface ProposalsListProps {
|
||||||
proposals: Proposals_proposals[];
|
proposals: Proposals_proposals[];
|
||||||
@ -53,6 +54,21 @@ export const ProposalsList = ({ proposals }: ProposalsListProps) => {
|
|||||||
<Button variant={'primary'}>{t('NewProposal')}</Button>
|
<Button variant={'primary'}>{t('NewProposal')}</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</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 && (
|
{proposals.length > 0 && (
|
||||||
<ProposalsListFilter setFilterString={setFilterString} />
|
<ProposalsListFilter setFilterString={setFilterString} />
|
||||||
|
Loading…
Reference in New Issue
Block a user