vega-frontend-monorepo/apps/trading/pages/dialogs-container.tsx
Matthew Russell 9dfce9e723
fix(#2209): make asset dialog use asset id rather than symbol (#2217)
* fix: make asset dialog use asset id rather than symbol

* fix: tests that relied on asset symbol rather than id

* chore: add missing asset id to mocks

* chore: add asset id to mocks for e2e tests

* chore: add missing asset id for orders mock

* chore: fix console-lite build

* chore: add missing asset ids to mocks
2022-11-23 23:42:22 +00:00

37 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';
import { WelcomeNoticeDialog } from '../components/welcome-notice';
const DialogsContainer = () => {
const { isOpen, id, trigger, setOpen } = useAssetDetailsDialogStore();
return (
<>
<VegaConnectDialog connectors={Connectors} />
<AssetDetailsDialog
assetId={id}
trigger={trigger || null}
open={isOpen}
onChange={setOpen}
/>
<RiskNoticeDialog />
<DepositDialog />
<Web3ConnectUncontrolledDialog />
<Web3Container childrenOnly connectEagerly>
<WithdrawalDialog />
</Web3Container>
<WelcomeNoticeDialog />
</>
);
};
export default DialogsContainer;