From 76194bc642e1c483b905465fd0d3c80d55a0b37c Mon Sep 17 00:00:00 2001 From: Art Date: Tue, 30 Aug 2022 15:48:04 +0200 Subject: [PATCH] feat: link to governance (908) (#1138) --- apps/token/src/config/links.ts | 1 + .../components/proposals-list/proposals-list.tsx | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/apps/token/src/config/links.ts b/apps/token/src/config/links.ts index 1c873a8ff..e93d28cbf 100644 --- a/apps/token/src/config/links.ts +++ b/apps/token/src/config/links.ts @@ -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', }; diff --git a/apps/token/src/routes/governance/components/proposals-list/proposals-list.tsx b/apps/token/src/routes/governance/components/proposals-list/proposals-list.tsx index 224960803..3ba9d5994 100644 --- a/apps/token/src/routes/governance/components/proposals-list/proposals-list.tsx +++ b/apps/token/src/routes/governance/components/proposals-list/proposals-list.tsx @@ -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) => { +
+

+ {t( + `The Vega network is governed by the community. View active proposals, vote on them or propose changes to the network.` + )}{' '} + + {t(`Find out more about Vega governance`)} + +

+
{proposals.length > 0 && (