From 70151490bd79d38f8064b720fc124d1774a18235 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 5 Apr 2024 10:30:19 -0300 Subject: fix listing, add cache invalidation, fix codec for accounts --- .../src/paths/instance/webhooks/list/Table.tsx | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/Table.tsx') diff --git a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/Table.tsx b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/Table.tsx index 2cafc7f9a..919285e78 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/Table.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/webhooks/list/Table.tsx @@ -32,8 +32,6 @@ interface Props { onSelect: (e: Entity) => void; onCreate: () => void; onLoadMoreBefore?: () => void; - hasMoreBefore?: boolean; - hasMoreAfter?: boolean; onLoadMoreAfter?: () => void; } @@ -44,8 +42,6 @@ export function CardTable({ onSelect, onLoadMoreAfter, onLoadMoreBefore, - hasMoreAfter, - hasMoreBefore, }: Props): VNode { const [rowSelection, rowSelectionHandler] = useState([]); @@ -85,8 +81,6 @@ export function CardTable({ rowSelectionHandler={rowSelectionHandler} onLoadMoreAfter={onLoadMoreAfter} onLoadMoreBefore={onLoadMoreBefore} - hasMoreAfter={hasMoreAfter} - hasMoreBefore={hasMoreBefore} /> ) : ( @@ -104,8 +98,6 @@ interface TableProps { onSelect: (e: Entity) => void; rowSelectionHandler: StateUpdater; onLoadMoreBefore?: () => void; - hasMoreBefore?: boolean; - hasMoreAfter?: boolean; onLoadMoreAfter?: () => void; } @@ -115,19 +107,17 @@ function Table({ onDelete, onSelect, onLoadMoreBefore, - hasMoreAfter, - hasMoreBefore, }: TableProps): VNode { const { i18n } = useTranslationContext(); return (
- {hasMoreBefore && ( + {onLoadMoreBefore && ( )} @@ -181,13 +171,13 @@ function Table({ })}
- {hasMoreAfter && ( + {onLoadMoreAfter && ( )}
-- cgit v1.2.3