fix(governance): updated page titles (#3810)
This commit is contained in:
parent
fabf643ce7
commit
d4a0a4a42c
@ -229,7 +229,7 @@ const redirects = [
|
|||||||
const routerConfig = [
|
const routerConfig = [
|
||||||
{
|
{
|
||||||
path: Routes.HOME,
|
path: Routes.HOME,
|
||||||
element: <LazyHome name="Token" />,
|
element: <LazyHome name="Home" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: Routes.PROPOSALS,
|
path: Routes.PROPOSALS,
|
||||||
@ -291,7 +291,7 @@ const routerConfig = [
|
|||||||
// Not lazy as loaded when a user first hits the site
|
// Not lazy as loaded when a user first hits the site
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
element: <Home name="Home" />,
|
element: <Home name="Token" />,
|
||||||
index: true,
|
index: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -325,8 +325,11 @@ const routerConfig = [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{ path: 'associate', element: <LazyStakingAssociate /> },
|
{ path: 'associate', element: <LazyStakingAssociate name="Associate" /> },
|
||||||
{ path: 'disassociate', element: <LazyStakingDisassociate /> },
|
{
|
||||||
|
path: 'disassociate',
|
||||||
|
element: <LazyStakingDisassociate name="Disassociate" />,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { useEthereumConfig } from '@vegaprotocol/web3';
|
import { useEthereumConfig } from '@vegaprotocol/web3';
|
||||||
import { StakingWalletsContainer } from './components/staking-wallets-container/staking-wallets-container';
|
import { StakingWalletsContainer } from './components/staking-wallets-container';
|
||||||
import { AssociatePage } from './associate-page';
|
import { AssociatePage } from './associate-page';
|
||||||
import { AssociatePageNoVega } from './associate-page-no-vega';
|
import { AssociatePageNoVega } from './associate-page-no-vega';
|
||||||
import { Heading } from '../../../components/heading';
|
import { Heading } from '../../../components/heading';
|
||||||
import React from 'react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { useDocumentTitle } from '../../../hooks/use-document-title';
|
||||||
|
import type { RouteChildProps } from '../../index';
|
||||||
|
|
||||||
export const AssociateContainer = () => {
|
export const AssociateContainer = ({ name }: RouteChildProps) => {
|
||||||
|
useDocumentTitle(name);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { config } = useEthereumConfig();
|
const { config } = useEthereumConfig();
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ jest.mock('@vegaprotocol/wallet', () => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const renderComponent = () => {
|
const renderComponent = () => {
|
||||||
return render(<Disassociate />);
|
return render(<Disassociate name="Disassociate" />);
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('Disassociate', () => {
|
describe('Disassociate', () => {
|
||||||
|
@ -3,10 +3,12 @@ import { useWeb3React } from '@web3-react/core';
|
|||||||
import { EthConnectPrompt } from '../../../components/eth-connect-prompt';
|
import { EthConnectPrompt } from '../../../components/eth-connect-prompt';
|
||||||
import { DisassociatePage } from './components/disassociate-page';
|
import { DisassociatePage } from './components/disassociate-page';
|
||||||
import { Heading } from '../../../components/heading';
|
import { Heading } from '../../../components/heading';
|
||||||
import React from 'react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
import { useDocumentTitle } from '../../../hooks/use-document-title';
|
||||||
|
import type { RouteChildProps } from '../../index';
|
||||||
|
|
||||||
export const DisassociateContainer = () => {
|
export const DisassociateContainer = ({ name }: RouteChildProps) => {
|
||||||
|
useDocumentTitle(name);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { account } = useWeb3React();
|
const { account } = useWeb3React();
|
||||||
const { pubKey } = useVegaWallet();
|
const { pubKey } = useVegaWallet();
|
||||||
|
Loading…
Reference in New Issue
Block a user