d1b45a65a0
* feat(#1812): don not require ethereum connection to display collateral * feat(#1812): amend trading-account e2e tests * feat(#1812): move Web3ConnectDialog to dialogs container, fix Web3Container childrenOnly option * feat(#1812): fix withdraw e2e tests * feat(#1812): reverse DialogsContainer changes, add Web3ConnectUncontrolledDialog * feat(#1812): wrap WithdrawalDialog with Web3Container * feat(#1812): fix deposit dialog handling in ZeroBalanceError * feat(#1812): fix deposit and withdraw dialog e2e tests * feat: market proposal selector - fix failing on develop e2e tests * feat: market proposal selector - fix failing on develop e2e tests * feat: market proposal selector - fix failing on develop e2e tests Co-authored-by: maciek <maciek@vegaprotocol.io>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import {
|
|
AssetDetailsDialog,
|
|
useAssetDetailsDialogStore,
|
|
} from '@vegaprotocol/assets';
|
|
import { VegaConnectDialog } from '@vegaprotocol/wallet';
|
|
import { Connectors } from '../lib/vega-connectors';
|
|
import { RiskNoticeDialog } from '../components/risk-notice-dialog';
|
|
import { WithdrawalDialog } from '@vegaprotocol/withdraws';
|
|
import { DepositDialog } from '@vegaprotocol/deposits';
|
|
import { Web3Container } from '@vegaprotocol/web3';
|
|
import { Web3ConnectUncontrolledDialog } from '@vegaprotocol/web3';
|
|
|
|
const DialogsContainer = () => {
|
|
const { isOpen, symbol, trigger, setOpen } = useAssetDetailsDialogStore();
|
|
return (
|
|
<>
|
|
<VegaConnectDialog connectors={Connectors} />
|
|
<AssetDetailsDialog
|
|
assetSymbol={symbol}
|
|
trigger={trigger || null}
|
|
open={isOpen}
|
|
onChange={setOpen}
|
|
/>
|
|
<RiskNoticeDialog />
|
|
<DepositDialog />
|
|
<Web3ConnectUncontrolledDialog />
|
|
<Web3Container childrenOnly connectEagerly>
|
|
<WithdrawalDialog />
|
|
</Web3Container>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default DialogsContainer;
|