Fix/1152: Rejected proposal details pages have wrong url (#1154)
This commit is contained in:
parent
07f4a3ccde
commit
64fcca3447
@ -16,6 +16,7 @@ import {
|
|||||||
ProposalRejectionReasonMapping,
|
ProposalRejectionReasonMapping,
|
||||||
ProposalState,
|
ProposalState,
|
||||||
} from '@vegaprotocol/types';
|
} from '@vegaprotocol/types';
|
||||||
|
import Routes from '../../../routes';
|
||||||
|
|
||||||
const MajorityNotReached = () => {
|
const MajorityNotReached = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -199,7 +200,7 @@ export const ProposalsListItemDetails = ({
|
|||||||
)}
|
)}
|
||||||
{proposal.id && (
|
{proposal.id && (
|
||||||
<div className="col-start-2 row-start-2 justify-self-end">
|
<div className="col-start-2 row-start-2 justify-self-end">
|
||||||
<Link to={proposal.id}>
|
<Link to={`${Routes.GOVERNANCE}/${proposal.id}`}>
|
||||||
<Button variant="secondary" data-testid="view-proposal-btn">
|
<Button variant="secondary" data-testid="view-proposal-btn">
|
||||||
{t('View')}
|
{t('View')}
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user