2023-02-06 20:09:56 +00:00
|
|
|
import { ToastsContainer, useToasts } from '@vegaprotocol/ui-toolkit';
|
2022-12-22 10:49:02 +00:00
|
|
|
import { useUpdateNetworkParametersToasts } from '@vegaprotocol/governance';
|
2023-01-19 12:10:52 +00:00
|
|
|
import { useVegaTransactionToasts } from '../lib/hooks/use-vega-transaction-toasts';
|
|
|
|
import { useEthereumTransactionToasts } from '../lib/hooks/use-ethereum-transaction-toasts';
|
|
|
|
import { useEthereumWithdrawApprovalsToasts } from '../lib/hooks/use-ethereum-withdraw-approval-toasts';
|
2022-12-21 09:29:32 +00:00
|
|
|
|
|
|
|
export const ToastsManager = () => {
|
2023-02-06 20:09:56 +00:00
|
|
|
useUpdateNetworkParametersToasts();
|
|
|
|
useVegaTransactionToasts();
|
|
|
|
useEthereumTransactionToasts();
|
|
|
|
useEthereumWithdrawApprovalsToasts();
|
2022-12-21 09:29:32 +00:00
|
|
|
|
2023-02-06 20:09:56 +00:00
|
|
|
const toasts = useToasts((store) => store.toasts);
|
2022-12-21 09:29:32 +00:00
|
|
|
return <ToastsContainer order="desc" toasts={toasts} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ToastsManager;
|