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';
|
2022-12-21 09:29:32 +00:00
|
|
|
import { CreateWithdrawalDialog } from '@vegaprotocol/withdraws';
|
2022-11-16 14:10:17 +00:00
|
|
|
import { DepositDialog } from '@vegaprotocol/deposits';
|
|
|
|
import { Web3ConnectUncontrolledDialog } from '@vegaprotocol/web3';
|
2022-12-13 13:31:28 +00:00
|
|
|
import { WelcomeDialog } from '../components/welcome-dialog';
|
2023-02-06 19:35:40 +00:00
|
|
|
import { TransferDialog } from '@vegaprotocol/accounts';
|
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-12-21 09:29:32 +00:00
|
|
|
|
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}
|
|
|
|
/>
|
2022-12-13 13:31:28 +00:00
|
|
|
<WelcomeDialog />
|
2022-11-16 14:10:17 +00:00
|
|
|
<DepositDialog />
|
|
|
|
<Web3ConnectUncontrolledDialog />
|
2022-12-21 09:29:32 +00:00
|
|
|
<CreateWithdrawalDialog />
|
2023-02-06 19:35:40 +00:00
|
|
|
<TransferDialog />
|
2022-10-14 15:42:53 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DialogsContainer;
|