From 55a01f7099ae511fad2aa3a32d57e4c5d9c0ca17 Mon Sep 17 00:00:00 2001 From: Boki Date: Wed, 18 Jun 2025 08:23:56 -0400 Subject: [PATCH] got rid of unused fragment --- apps/web-app/src/components/ui/DataTable/DataTable.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web-app/src/components/ui/DataTable/DataTable.tsx b/apps/web-app/src/components/ui/DataTable/DataTable.tsx index 6e91197..fa03ec7 100644 --- a/apps/web-app/src/components/ui/DataTable/DataTable.tsx +++ b/apps/web-app/src/components/ui/DataTable/DataTable.tsx @@ -10,7 +10,7 @@ import { SortingState, useReactTable, } from '@tanstack/react-table'; -import { Fragment, useState } from 'react'; +import { useState } from 'react'; import { TableVirtuoso } from 'react-virtuoso'; interface DataTableProps { @@ -89,7 +89,7 @@ export function DataTable({ TableRow: props => { const index = props['data-index'] as number; const item = flatRows[index]; - + if (!item) return null; if (item.type === 'expanded') { @@ -163,7 +163,9 @@ export function DataTable({ className={cn( 'absolute right-0 top-0 h-full w-1 cursor-col-resize user-select-none touch-none', 'hover:bg-primary-500 hover:opacity-100', - header.column.getIsResizing() ? 'bg-primary-500 opacity-100' : 'bg-border opacity-0' + header.column.getIsResizing() + ? 'bg-primary-500 opacity-100' + : 'bg-border opacity-0' )} /> )} @@ -176,4 +178,4 @@ export function DataTable({ } /> ); -} \ No newline at end of file +}