c1675e4b49
Co-authored-by: Art <artur@vegaprotocol.io> Co-authored-by: Bartłomiej Głownia <bglownia@gmail.com> Co-authored-by: Dariusz Majcherczyk <dariusz.majcherczyk@gmail.com>
36 lines
959 B
TypeScript
36 lines
959 B
TypeScript
import {
|
|
AssetDetailsDialog,
|
|
useAssetDetailsDialogStore,
|
|
} from '@vegaprotocol/assets';
|
|
import { VegaConnectDialog } from '@vegaprotocol/wallet';
|
|
import { Connectors } from '../lib/vega-connectors';
|
|
import {
|
|
Web3ConnectUncontrolledDialog,
|
|
WithdrawalApprovalDialogContainer,
|
|
} from '@vegaprotocol/web3';
|
|
import { WelcomeDialog } from '../components/welcome-dialog';
|
|
import { RiskMessage } from '../components/welcome-dialog';
|
|
|
|
const DialogsContainer = () => {
|
|
const { isOpen, id, trigger, setOpen } = useAssetDetailsDialogStore();
|
|
return (
|
|
<>
|
|
<VegaConnectDialog
|
|
connectors={Connectors}
|
|
riskMessage={<RiskMessage />}
|
|
/>
|
|
<AssetDetailsDialog
|
|
assetId={id}
|
|
trigger={trigger || null}
|
|
open={isOpen}
|
|
onChange={setOpen}
|
|
/>
|
|
<WelcomeDialog />
|
|
<Web3ConnectUncontrolledDialog />
|
|
<WithdrawalApprovalDialogContainer />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default DialogsContainer;
|