Skip to content
Source
Sign inSign up
TanStack/table

fix(mantine-react-table): don't render a detail panel for the empty row #6598

Opennazaiva(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/6598/headopened

Showing 2 changed files with 19 additions and 32 deletions.

x
0 of 2 viewed, 2 left
4 additions and 21 deletionsexamples/react/mantine-react-table/src/mantine-react-table/components/body/MRT_TableBodyEmptyRow.tsxModified
View file
@@ -4,10 +4,9 @@
​
import { constructRow as createRow } from '@tanstack/react-table'
​
-import { TableTd, Text } from '@mantine/core'
+import { Text } from '@mantine/core'
​
-import { MRT_ExpandButton } from '../buttons/MRT_ExpandButton'
-import { MRT_TableBodyRow } from './MRT_TableBodyRow'
+import { MRT_EMPTY_ROW_ID, MRT_TableBodyRow } from './MRT_TableBodyRow'
import classes from './MRT_TableBody.module.css'
import type { MRT_Row, MRT_RowData, MRT_TableInstance } from '../../types'
import type { TableProps, TableTrProps } from '@mantine/core'
@@ -24,12 +23,7 @@
}: Props<TData>) => {
const {
state,
- options: {
- layoutMode,
- localization,
- renderDetailPanel,
- renderEmptyRowsFallback,
- },
+ options: { layoutMode, localization, renderEmptyRowsFallback },
refs: { tablePaperRef },