2022-10-14 15:42:53 +00:00
|
|
|
import {
|
|
|
|
AssetDetailsDialog,
|
|
|
|
useAssetDetailsDialogStore,
|
|
|
|
} from '@vegaprotocol/assets';
|
|
|
|
import { VegaConnectDialog } from '@vegaprotocol/wallet';
|
|
|
|
import { Connectors } from '../lib/vega-connectors';
|
|
|
|
import { RiskNoticeDialog } from '../components/risk-notice-dialog';
|
2022-11-16 14:10:17 +00:00
|
|
|
import { WithdrawalDialog } from '@vegaprotocol/withdraws';
|
|
|
|
import { DepositDialog } from '@vegaprotocol/deposits';
|
|
|
|
import { Web3ConnectUncontrolledDialog } from '@vegaprotocol/web3';
|
2022-11-18 17:08:48 +00:00
|
|
|
import { WelcomeNoticeDialog } from '../components/welcome-notice';
|
2022-10-14 15:42:53 +00:00
|
|
|
|
|
|
|
const DialogsContainer = () => {
|
2022-11-23 23:42:22 +00:00
|
|
|
const { isOpen, id, trigger, setOpen } = useAssetDetailsDialogStore();
|
2022-10-14 15:42:53 +00:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<VegaConnectDialog connectors={Connectors} />
|
|
|
|
<AssetDetailsDialog
|
2022-11-23 23:42:22 +00:00
|
|
|
assetId={id}
|
2022-10-14 15:42:53 +00:00
|
|
|
trigger={trigger || null}
|
|
|
|
open={isOpen}
|
|
|
|
onChange={setOpen}
|
|
|
|
/>
|
|
|
|
<RiskNoticeDialog />
|
2022-11-16 14:10:17 +00:00
|
|
|
<DepositDialog />
|
|
|
|
<Web3ConnectUncontrolledDialog />
|
2022-12-07 09:24:40 +00:00
|
|
|
<WithdrawalDialog />
|
2022-11-18 17:08:48 +00:00
|
|
|
<WelcomeNoticeDialog />
|
2022-10-14 15:42:53 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DialogsContainer;
|