From 893331b8242976aa357bc7670c405553b955b3ca Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 23 Oct 2024 17:05:34 -0500 Subject: [PATCH 1/5] refactor: add border when no load more button is shown --- .../transaction/components/Transactions/Transactions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/transaction/components/Transactions/Transactions.tsx b/src/domains/transaction/components/Transactions/Transactions.tsx index be6e5f3978..788771fdbd 100644 --- a/src/domains/transaction/components/Transactions/Transactions.tsx +++ b/src/domains/transaction/components/Transactions/Transactions.tsx @@ -209,7 +209,7 @@ export const Transactions = memo(function Transactions({ )} ) : ( - +
{t("COMMON.SHOWING_RESULTS", { count: transactions.length })} From 1a04308acd2e2eda4a177b1cd1ed8a41543ba09a Mon Sep 17 00:00:00 2001 From: Juan Patricio Marroquin Date: Wed, 23 Oct 2024 17:07:01 -0500 Subject: [PATCH 2/5] chore: update snapshots --- .../Transactions/__snapshots__/Transactions.test.tsx.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap b/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap index f5ef04dcb7..9e648eb71a 100644 --- a/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap +++ b/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap @@ -159,7 +159,7 @@ exports[`Transactions > should fetch more transactions 1`] = `
should hide view more button when there are no next page
should open detail modal on transaction row click 1`] =
Date: Thu, 24 Oct 2024 12:46:28 +0200 Subject: [PATCH 3/5] wip --- .../components/Transactions/Transactions.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/domains/transaction/components/Transactions/Transactions.tsx b/src/domains/transaction/components/Transactions/Transactions.tsx index 788771fdbd..ac4f8cc26e 100644 --- a/src/domains/transaction/components/Transactions/Transactions.tsx +++ b/src/domains/transaction/components/Transactions/Transactions.tsx @@ -1,19 +1,19 @@ import { Contracts, DTO } from "@ardenthq/sdk-profiles"; import React, { memo, useCallback, useEffect, useMemo, useState } from "react"; +import { Tab, TabList, Tabs } from "@/app/components/Tabs"; import { Trans, useTranslation } from "react-i18next"; import { Button } from "@/app/components/Button"; +import { Dropdown } from "@/app/components/Dropdown"; import { EmptyBlock } from "@/app/components/EmptyBlock"; -import { Tab, TabList, Tabs } from "@/app/components/Tabs"; import { FilterTransactions } from "@/domains/transaction/components/FilterTransactions"; -import { TransactionDetailModal } from "@/domains/transaction/components/TransactionDetailModal"; -import { TransactionTable } from "@/domains/transaction/components/TransactionTable"; -import { useProfileTransactions } from "@/domains/transaction/hooks/use-profile-transactions"; -import { Dropdown } from "@/app/components/Dropdown"; -import { TabId } from "@/app/components/Tabs/useTab"; import { Icon } from "@/app/components/Icon"; +import { TabId } from "@/app/components/Tabs/useTab"; import { TableWrapper } from "@/app/components/Table/TableWrapper"; +import { TransactionDetailModal } from "@/domains/transaction/components/TransactionDetailModal"; +import { TransactionTable } from "@/domains/transaction/components/TransactionTable"; import cn from "classnames"; +import { useProfileTransactions } from "@/domains/transaction/hooks/use-profile-transactions"; interface TransactionsProperties { emptyText?: string; @@ -209,7 +209,7 @@ export const Transactions = memo(function Transactions({ )} ) : ( - +
{t("COMMON.SHOWING_RESULTS", { count: transactions.length })} From 15452d8d93d483a03cb830b9d91c7027d12e30a4 Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Thu, 24 Oct 2024 12:50:54 +0200 Subject: [PATCH 4/5] wip --- .../Transactions/__snapshots__/Transactions.test.tsx.snap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap b/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap index 9e648eb71a..5f5db617cc 100644 --- a/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap +++ b/src/domains/transaction/components/Transactions/__snapshots__/Transactions.test.tsx.snap @@ -159,7 +159,7 @@ exports[`Transactions > should fetch more transactions 1`] = `
should hide view more button when there are no next page
should open detail modal on transaction row click 1`] =
Date: Thu, 24 Oct 2024 12:51:20 +0200 Subject: [PATCH 5/5] wip --- .../__snapshots__/DelegateRegistrationForm.test.tsx.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/transaction/components/DelegateRegistrationForm/__snapshots__/DelegateRegistrationForm.test.tsx.snap b/src/domains/transaction/components/DelegateRegistrationForm/__snapshots__/DelegateRegistrationForm.test.tsx.snap index c298b6838b..ec21cf9a68 100644 --- a/src/domains/transaction/components/DelegateRegistrationForm/__snapshots__/DelegateRegistrationForm.test.tsx.snap +++ b/src/domains/transaction/components/DelegateRegistrationForm/__snapshots__/DelegateRegistrationForm.test.tsx.snap @@ -789,7 +789,7 @@ exports[`DelegateRegistrationForm > should render review step 1`] = ` class="flex items-center justify-between space-x-2 sm:justify-start sm:space-x-0" >
From