Fix/1152: Rejected proposal details pages have wrong url (#1154)

This commit is contained in:
Sam Keen 2022-08-25 15:42:28 +01:00 committed by GitHub
parent 07f4a3ccde
commit 64fcca3447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ import {
ProposalRejectionReasonMapping,
ProposalState,
} from '@vegaprotocol/types';
import Routes from '../../../routes';
const MajorityNotReached = () => {
const { t } = useTranslation();
@ -199,7 +200,7 @@ export const ProposalsListItemDetails = ({
)}
{proposal.id && (
<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">
{t('View')}
</Button>