diff --git a/tauri-app/src/lib/components/tables/OrdersListTable.svelte b/tauri-app/src/lib/components/tables/OrdersListTable.svelte index 85e33d4bf..34d890ddc 100644 --- a/tauri-app/src/lib/components/tables/OrdersListTable.svelte +++ b/tauri-app/src/lib/components/tables/OrdersListTable.svelte @@ -15,26 +15,15 @@ TableHeadCell, } from 'flowbite-svelte'; import { DotsVerticalOutline } from 'flowbite-svelte-icons'; + import { walletAddressMatchesOrBlank } from '$lib/stores/wallets'; import { Hash, HashType } from '@rainlanguage/ui-components'; + import { activeNetworkRef, activeOrderbookRef, activeSubgraphs } from '$lib/stores/settings'; import { formatTimestampSecondsAsLocal } from '$lib/utils/time'; - - import type { Order as OrderDetailOrder } from '$lib/typeshare/subgraphTypes'; - import type { Order as OrderListOrder } from '$lib/typeshare/subgraphTypes'; - - import { get, type Readable, type Writable } from 'svelte/store'; - - export let handleOrderRemoveModal: ( - order: OrderDetailOrder | OrderListOrder, - onOrderRemoved: () => void, - ) => void; - export let walletAddressMatchesOrBlank: Writable<(otherAddress: string) => boolean>; - export let activeAccounts: Readable>; - export let activeSubgraphs: Writable>; - export let activeNetworkRef: Writable; - export let activeOrderbookRef: Writable; - export let activeOrderStatus: Writable; - export let orderHash: Writable; + import { handleOrderRemoveModal } from '$lib/services/modal'; + import { activeAccounts, activeOrderStatus } from '$lib/stores/settings'; + import { get } from 'svelte/store'; + import { orderHash } from '$lib/stores/settings'; $: query = createInfiniteQuery({ queryKey: [QKEY_ORDERS, $activeAccounts, $activeOrderStatus, $orderHash, $activeSubgraphs],