2022-11-16 14:36:03 +00:00
|
|
|
import { t } from '@vegaprotocol/react-helpers';
|
2022-11-22 10:52:31 +00:00
|
|
|
import {
|
|
|
|
DApp,
|
|
|
|
TOKEN_NEW_MARKET_PROPOSAL,
|
|
|
|
useLinks,
|
|
|
|
} from '@vegaprotocol/environment';
|
2022-11-16 14:36:03 +00:00
|
|
|
import { ProposalsList } from '@vegaprotocol/governance';
|
|
|
|
import { ExternalLink } from '@vegaprotocol/ui-toolkit';
|
|
|
|
|
|
|
|
export const Proposed = () => {
|
2022-11-22 10:52:31 +00:00
|
|
|
const tokenLink = useLinks(DApp.Token);
|
|
|
|
const externalLink = tokenLink(TOKEN_NEW_MARKET_PROPOSAL);
|
2022-11-16 14:36:03 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<ProposalsList />
|
2022-11-17 08:49:29 +00:00
|
|
|
<ExternalLink className="py-4 px-[11px] text-sm" href={externalLink}>
|
2022-11-16 14:36:03 +00:00
|
|
|
{t('Propose a new market')}
|
|
|
|
</ExternalLink>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|