List of Portabase users
diff --git a/src/components/wrappers/table/data-table.tsx b/src/components/wrappers/table/data-table.tsx
index 4eea740b..ae433b11 100644
--- a/src/components/wrappers/table/data-table.tsx
+++ b/src/components/wrappers/table/data-table.tsx
@@ -7,47 +7,50 @@ export type dataTableProps = {
export const DataTable = ({table}: dataTableProps) => {
return (
-
-
- {table.getHeaderGroups().map((headerGroup) => (
-
- {headerGroup.headers.map((header) => {
- return (
-
- {header.isPlaceholder
- ? null
- : flexRender(
- header.column.columnDef.header,
- header.getContext()
- )}
-
- )
- })}
-
- ))}
-
-
- {table.getRowModel().rows?.length ? (
- table.getRowModel().rows.map((row) => (
-
- {row.getVisibleCells().map((cell) => (
-
- {flexRender(cell.column.columnDef.cell, cell.getContext())}
-
- ))}
+
+
+
+
+ {table.getHeaderGroups().map((headerGroup) => (
+
+ {headerGroup.headers.map((header) => {
+ return (
+
+ {header.isPlaceholder
+ ? null
+ : flexRender(
+ header.column.columnDef.header,
+ header.getContext()
+ )}
+
+ )
+ })}
- ))
- ) : (
-
-
- No results.
-
-
- )}
-
-
+ ))}
+
+
+ {table.getRowModel().rows?.length ? (
+ table.getRowModel().rows.map((row) => (
+
+ {row.getVisibleCells().map((cell) => (
+
+ {flexRender(cell.column.columnDef.cell, cell.getContext())}
+
+ ))}
+
+ ))
+ ) : (
+
+
+ No results.
+
+
+ )}
+
+
+
)
}
\ No newline at end of file
diff --git a/src/components/wrappers/table/table-pagination-size.tsx b/src/components/wrappers/table/table-pagination-size.tsx
index f9a20a7d..d4d08a27 100644
--- a/src/components/wrappers/table/table-pagination-size.tsx
+++ b/src/components/wrappers/table/table-pagination-size.tsx
@@ -8,26 +8,24 @@ export type tablePaginationSizeProps = {
pageSizeOptions?: number[]
}
-
export const TablePaginationSize = (props: tablePaginationSizeProps) => {
-
- const {className, table, pageSizeOptions = [10, 20, 30, 40, 50]} = props
+ const { className, table, pageSizeOptions = [10, 20, 30, 40, 50] } = props;
useEffect(() => {
- table.setPageSize(Number(pageSizeOptions[0]))
+ table.setPageSize(Number(pageSizeOptions[0]));
}, []);
return (
-
+
Rows per page
- )
-
-}
\ No newline at end of file
+ );
+};
diff --git a/src/components/wrappers/table/table-pagination.tsx b/src/components/wrappers/table/table-pagination.tsx
index 912ca28c..f68f5e67 100644
--- a/src/components/wrappers/table/table-pagination.tsx
+++ b/src/components/wrappers/table/table-pagination.tsx
@@ -16,9 +16,9 @@ export function TablePagination(props: tablePaginationProps) {
const {className, table, maxVisiblePages = 3, pageSizeOptions = [10, 20, 30, 40, 50]} = props
return (
-