feat(governance): final wallet not connected views (#3037)
This commit is contained in:
parent
79b0868ff7
commit
9c9948e4c1
@ -11,7 +11,7 @@ export const EthConnectPrompt = () => {
|
|||||||
const { appDispatch } = useAppState();
|
const { appDispatch } = useAppState();
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
variant="primary"
|
variant="default"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
appDispatch({
|
appDispatch({
|
||||||
type: AppStateActionType.SET_ETH_WALLET_OVERLAY,
|
type: AppStateActionType.SET_ETH_WALLET_OVERLAY,
|
||||||
|
@ -336,6 +336,7 @@
|
|||||||
"withdrawLpNoneDeposited": "You have no SLP tokens deposited or rewards accumulated",
|
"withdrawLpNoneDeposited": "You have no SLP tokens deposited or rewards accumulated",
|
||||||
"withdrawAllLpSuccessCalloutTitle": "Your SLP tokens and rewards have been sent to your Ethereum address",
|
"withdrawAllLpSuccessCalloutTitle": "Your SLP tokens and rewards have been sent to your Ethereum address",
|
||||||
"Dissociate VEGA tokens": "Disassociate $VEGA tokens",
|
"Dissociate VEGA tokens": "Disassociate $VEGA tokens",
|
||||||
|
"DisassociateVegaTokensFromWallet": "Disassociate $VEGA tokens from your Vega wallet",
|
||||||
"Early Investors": "Early Investors",
|
"Early Investors": "Early Investors",
|
||||||
"Team": "Team",
|
"Team": "Team",
|
||||||
"Community": "Community",
|
"Community": "Community",
|
||||||
@ -482,6 +483,7 @@
|
|||||||
"withdrawFormSubmitButtonIdle": "Withdraw {{amount}} {{symbol}} tokens",
|
"withdrawFormSubmitButtonIdle": "Withdraw {{amount}} {{symbol}} tokens",
|
||||||
"withdrawFormSubmitButtonPending": "Preparing",
|
"withdrawFormSubmitButtonPending": "Preparing",
|
||||||
"withdrawalsTitle": "Withdrawals",
|
"withdrawalsTitle": "Withdrawals",
|
||||||
|
"withdrawalsSubtitle": "Connect your Vega wallet to complete a withdrawal. These withdrawals will be completed with an Ethereum transaction.",
|
||||||
"withdrawalsText": "These withdrawals need to be completed with an Ethereum transaction.",
|
"withdrawalsText": "These withdrawals need to be completed with an Ethereum transaction.",
|
||||||
"withdrawalsNone": "You don't have any pending withdrawals.",
|
"withdrawalsNone": "You don't have any pending withdrawals.",
|
||||||
"withdrawalsCompleteButton": "Finish withdrawal",
|
"withdrawalsCompleteButton": "Finish withdrawal",
|
||||||
|
@ -15,7 +15,12 @@ export const DisassociateContainer = () => {
|
|||||||
<>
|
<>
|
||||||
<Heading title={t('pageTitleDisassociate')} />
|
<Heading title={t('pageTitleDisassociate')} />
|
||||||
{!account ? (
|
{!account ? (
|
||||||
|
<>
|
||||||
|
<p className="mb-8">{t('DisassociateVegaTokensFromWallet')}</p>
|
||||||
|
<div className="max-w-[400px]">
|
||||||
<EthConnectPrompt />
|
<EthConnectPrompt />
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
) : (
|
) : (
|
||||||
<DisassociatePage address={account} vegaKey={pubKey ?? ''} />
|
<DisassociatePage address={account} vegaKey={pubKey ?? ''} />
|
||||||
)}
|
)}
|
||||||
|
@ -17,12 +17,14 @@ import type { RouteChildProps } from '../index';
|
|||||||
const Withdrawals = ({ name }: RouteChildProps) => {
|
const Withdrawals = ({ name }: RouteChildProps) => {
|
||||||
useDocumentTitle(name);
|
useDocumentTitle(name);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
const { pubKey } = useVegaWallet();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Heading title={t('withdrawalsTitle')} />
|
<Heading title={t('withdrawalsTitle')} />
|
||||||
|
{!pubKey && <p className="mb-8">{t('withdrawalsSubtitle')}</p>}
|
||||||
<VegaWalletContainer>
|
<VegaWalletContainer>
|
||||||
{(currVegaKey) => <WithdrawPendingContainer />}
|
{() => <WithdrawPendingContainer />}
|
||||||
</VegaWalletContainer>
|
</VegaWalletContainer>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user