From 74c8e04fcb5019e873a72e72489de5333eee6b26 Mon Sep 17 00:00:00 2001 From: andrzej Date: Wed, 19 Jun 2024 11:54:07 +0200 Subject: [PATCH] tweaks --- src/app/story/data-table.tsx | 62 +++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/src/app/story/data-table.tsx b/src/app/story/data-table.tsx index 9c454e7..8248775 100644 --- a/src/app/story/data-table.tsx +++ b/src/app/story/data-table.tsx @@ -71,39 +71,41 @@ export function DataTable({ console.log(filterBy.id) return (<>
+
+ + + + + + + {table + .getAllColumns() + .filter((column) => column.getCanFilter()) + .map((column) => { + return ( + + {column.id} + + ) + })} + + + + + table.getColumn(filterBy.id)?.setFilterValue(event.target.value) + } + className="max-w-sm" + /> +
- - - - {table - .getAllColumns() - .filter((column) => column.getCanFilter()) - .map((column) => { - return ( - - {column.id} - - ) - })} - - - - - table.getColumn(filterBy.id)?.setFilterValue(event.target.value) - } - className="max-w-sm" - /> - - -