diff --git a/packages/bridge-ui/src/App.svelte b/packages/bridge-ui/src/App.svelte index 03f59f81a29..69f3435151b 100644 --- a/packages/bridge-ui/src/App.svelte +++ b/packages/bridge-ui/src/App.svelte @@ -3,6 +3,7 @@ import QueryProvider from "./components/providers/QueryProvider.svelte"; import Router from "svelte-spa-router"; import { SvelteToast, toast } from "@zerodevx/svelte-toast"; + import type { SvelteToastOptions } from "@zerodevx/svelte-toast"; import Home from "./pages/home/Home.svelte"; import { setupI18n } from "./i18n"; @@ -21,8 +22,8 @@ import SwitchEthereumChainModal from "./components/modals/SwitchEthereumChainModal.svelte"; import { ProofService } from "./proof/service"; import { ethers } from "ethers"; - import { number } from "svelte-i18n"; import type { Prover } from "./domain/proof"; + import { successToast } from "./utils/toast"; const providerMap: Map = new Map< number, @@ -61,13 +62,19 @@ pendingTransactions.subscribe((store) => { store.forEach(async (tx) => { await $signer.provider.waitForTransaction(tx.hash, 3); - toast.push("Transaction completed!"); + successToast("Transaction completed!"); const s = store; s.pop(); pendingTransactions.set(s); }); }); + const toastOptions: SvelteToastOptions = { + dismissable: false, + duration: 4000, + pausable: false, + }; + const routes = { "/": wrap({ component: Home, @@ -82,7 +89,7 @@ - + diff --git a/packages/bridge-ui/src/components/AddressDropdown.svelte b/packages/bridge-ui/src/components/AddressDropdown.svelte index 208a5905756..e472abe3c68 100644 --- a/packages/bridge-ui/src/components/AddressDropdown.svelte +++ b/packages/bridge-ui/src/components/AddressDropdown.svelte @@ -1,7 +1,6 @@ -