From 7c6b14f73ab5bb3802109cf81de0af435ecfb7a5 Mon Sep 17 00:00:00 2001 From: Dexter Edwards Date: Tue, 27 Sep 2022 10:06:31 +0100 Subject: [PATCH] fix: full reload when moving to propose child routes (#1496) * fix: full reload when moving to propose child routes * chore: replace outlet --- .../src/routes/governance/propose/propose.tsx | 38 ++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/apps/token/src/routes/governance/propose/propose.tsx b/apps/token/src/routes/governance/propose/propose.tsx index 31bc24af9..7b0ba9070 100644 --- a/apps/token/src/routes/governance/propose/propose.tsx +++ b/apps/token/src/routes/governance/propose/propose.tsx @@ -1,6 +1,6 @@ import Routes from '../../routes'; import { useTranslation } from 'react-i18next'; -import { Link } from '@vegaprotocol/ui-toolkit'; +import { Link } from 'react-router-dom'; import { useEnvironment } from '@vegaprotocol/environment'; import { Heading } from '../../../components/heading'; @@ -17,7 +17,8 @@ export const Propose = () => {

{t('ProposalTermsText')} {`${VEGA_DOCS_URL}/tutorials/proposals`}

@@ -26,7 +27,8 @@ export const Propose = () => {

{t('MoreProposalsInfo')}{' '} {`${VEGA_EXPLORER_URL}/governance`}

@@ -39,42 +41,60 @@ export const Propose = () => {