fix(trading): add info splashes on deposit and withdrawals list containers (#4479)

This commit is contained in:
Maciek 2023-08-03 13:01:42 +02:00 committed by GitHub
parent af14c27df9
commit 8a47a92dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { Button } from '@vegaprotocol/ui-toolkit'; import { Button, Splash } from '@vegaprotocol/ui-toolkit';
import { DepositsTable } from '@vegaprotocol/deposits'; import { DepositsTable } from '@vegaprotocol/deposits';
import { depositsProvider } from '@vegaprotocol/deposits'; import { depositsProvider } from '@vegaprotocol/deposits';
import { t } from '@vegaprotocol/i18n'; import { t } from '@vegaprotocol/i18n';
@ -17,6 +17,9 @@ export const DepositsContainer = () => {
skip: !pubKey, skip: !pubKey,
}); });
const setView = useSidebar((store) => store.setView); const setView = useSidebar((store) => store.setView);
if (!pubKey) {
return <Splash>{t('Please connect Vega wallet')}</Splash>;
}
return ( return (
<div className="h-full"> <div className="h-full">
<DepositsTable <DepositsTable

View File

@ -1,4 +1,4 @@
import { Button } from '@vegaprotocol/ui-toolkit'; import { Button, Splash } from '@vegaprotocol/ui-toolkit';
import { import {
withdrawalProvider, withdrawalProvider,
WithdrawalsTable, WithdrawalsTable,
@ -18,7 +18,9 @@ export const WithdrawalsContainer = () => {
}); });
const setView = useSidebar((store) => store.setView); const setView = useSidebar((store) => store.setView);
const { ready, delayed } = useIncompleteWithdrawals(); const { ready, delayed } = useIncompleteWithdrawals();
if (!pubKey) {
return <Splash>{t('Please connect Vega wallet')}</Splash>;
}
return ( return (
<> <>
<div className="h-full relative"> <div className="h-full relative">