+
+ Ativo
+
+
+ Expirado
+
+
Finalizado
{{ getExplorer() }}

@@ -242,6 +303,9 @@ p {
@apply flex justify-between items-center;
}
+.status-text {
+ @apply text-base font-medium text-gray-900 rounded-lg text-center mb-2 p-1;
+}
.text {
@apply text-white text-center;
}
diff --git a/src/components/ListingComponent/__tests__/ListingComponent.spec.ts b/src/components/ListingComponent/__tests__/ListingComponent.spec.ts
index 9d066db..114530e 100644
--- a/src/components/ListingComponent/__tests__/ListingComponent.spec.ts
+++ b/src/components/ListingComponent/__tests__/ListingComponent.spec.ts
@@ -3,11 +3,13 @@ import ListingComponent from "@/components/ListingComponent/ListingComponent.vue
import { createPinia, setActivePinia } from "pinia";
import { expect } from "vitest";
import { MockValidDeposits } from "@/model/mock/ValidDepositMock";
-import { MockEvents } from "@/model/mock/EventMock";
+import { MockWalletTransactions } from "@/model/mock/WalletTransactionMock";
+import { useEtherStore } from "@/store/ether";
describe("ListingComponent.vue", () => {
beforeEach(() => {
setActivePinia(createPinia());
+ useEtherStore().setLoadingWalletTransactions(false);
});
test("Test Message when an empty array is received", () => {
@@ -25,7 +27,7 @@ describe("ListingComponent.vue", () => {
const wrapper = mount(ListingComponent, {
props: {
validDeposits: [],
- walletTransactions: MockEvents,
+ walletTransactions: MockWalletTransactions,
},
});
@@ -38,7 +40,7 @@ describe("ListingComponent.vue", () => {
const wrapper = mount(ListingComponent, {
props: {
validDeposits: MockValidDeposits,
- walletTransactions: MockEvents,
+ walletTransactions: MockWalletTransactions,
},
});
const btn = wrapper.find("button");
@@ -50,14 +52,14 @@ describe("ListingComponent.vue", () => {
elements = wrapper.findAll(".item-container");
- expect(elements).toHaveLength(4);
+ expect(elements).toHaveLength(5);
});
test("Test withdraw offer button emit", async () => {
const wrapper = mount(ListingComponent, {
props: {
validDeposits: MockValidDeposits,
- walletTransactions: MockEvents,
+ walletTransactions: MockWalletTransactions,
},
});
wrapper.vm.$emit("depositWithdrawn");
diff --git a/src/components/SearchComponent.vue b/src/components/SearchComponent.vue
index 2dbadc1..2a1736d 100644
--- a/src/components/SearchComponent.vue
+++ b/src/components/SearchComponent.vue
@@ -9,6 +9,7 @@ import { verifyNetworkLiquidity } from "@/utils/networkLiquidity";
import { NetworkEnum } from "@/model/NetworkEnum";
import type { ValidDeposit } from "@/model/ValidDeposit";
import { decimalCount } from "@/utils/decimalCount";
+import SpinnerComponent from "./SpinnerComponent.vue";
// Store reference
const etherStore = useEtherStore();
@@ -18,6 +19,7 @@ const {
networkName,
depositsValidListGoerli,
depositsValidListMumbai,
+ loadingNetworkLiquidity,
} = storeToRefs(etherStore);
// Reactive state
@@ -160,8 +162,11 @@ watch(walletAddress, (): void => {