From 4a6ca40a18ac6996745380372701b3690975ec5c Mon Sep 17 00:00:00 2001 From: devjoaov Date: Mon, 22 Apr 2024 14:35:23 -0300 Subject: [PATCH] chore: add loading state for datatable --- src/components/DataTable/DataTable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/DataTable/DataTable.tsx b/src/components/DataTable/DataTable.tsx index af36cf9..c5e2ab4 100644 --- a/src/components/DataTable/DataTable.tsx +++ b/src/components/DataTable/DataTable.tsx @@ -46,6 +46,7 @@ export function DataTable({ buildTableColumns = buildColumns, setQueryToParams, setSelectedData, + isLoading = false, }) { const { pagination, @@ -154,6 +155,7 @@ export function DataTable({ setTableState, table, searchKey, + isLoading, }; return (