38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
import {
|
|
AssetDetailsDialog,
|
|
useAssetDetailsDialogStore,
|
|
} from '@vegaprotocol/assets';
|
|
import { VegaConnectDialog, ViewAsDialog } from '@vegaprotocol/wallet';
|
|
import { useConnectors } 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();
|
|
const connectors = useConnectors();
|
|
return (
|
|
<>
|
|
<VegaConnectDialog
|
|
connectors={connectors}
|
|
riskMessage={<RiskMessage />}
|
|
/>
|
|
<ViewAsDialog connector={connectors.view} />
|
|
<AssetDetailsDialog
|
|
assetId={id}
|
|
trigger={trigger || null}
|
|
open={isOpen}
|
|
onChange={setOpen}
|
|
/>
|
|
<WelcomeDialog />
|
|
<Web3ConnectUncontrolledDialog />
|
|
<WithdrawalApprovalDialogContainer />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default DialogsContainer;
|