Skip to content

Commit

Permalink
fix: storybook runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrojcm committed Sep 27, 2023
1 parent bd54261 commit fa20181
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions packages/mantine-react-table/src/footer/MRT_TableFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const MRT_TableFooter = <TData extends Record<string, any> = {}>({
} = table;
const { isFullScreen } = getState();

const { className, ...tableFooterProps } =
const tableFooterProps =
mantineTableFooterProps instanceof Function
? mantineTableFooterProps({ table })
: mantineTableFooterProps;
Expand All @@ -41,7 +41,6 @@ export const MRT_TableFooter = <TData extends Record<string, any> = {}>({
layoutMode === 'grid'
? classes.MRT_TableFooterGrid
: classes.MRT_TableFooterTableRowGroup,
className,
)}
style={(theme) => ({
...(tableFooterProps?.style instanceof Function
Expand Down
3 changes: 1 addition & 2 deletions packages/mantine-react-table/src/head/MRT_TableHeadCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const MRT_TableHeadCell = <TData extends Record<string, any> = {}>({
borderRight: draggingBorder,
borderTop: draggingBorder,
}
: undefined;
: {};

const handleDragEnter = (_e: DragEvent) => {
if (enableGrouping && hoveredColumn?.id === 'drop-zone') {
Expand Down Expand Up @@ -127,7 +127,6 @@ export const MRT_TableHeadCell = <TData extends Record<string, any> = {}>({
<Box
component="th"
align={columnDefType === 'group' ? 'center' : 'left'}
data-selected={row?.getIsSelected() ?? 'false'}
data-ispinned={column?.getIsPinned() ?? 'false'}
data-cansort={column.getCanSort()}
data-isresizing={column.getIsResizing()}
Expand Down
3 changes: 1 addition & 2 deletions packages/mantine-react-table/src/head/MRT_TableHeadRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const MRT_TableHeadRow = <TData extends Record<string, any> = {}>({
} = table;
const { isFullScreen } = getState();

const { className, ...tableRowProps } =
const tableRowProps =
mantineTableHeadRowProps instanceof Function
? mantineTableHeadRowProps({ headerGroup, table })
: mantineTableHeadRowProps;
Expand All @@ -44,7 +44,6 @@ export const MRT_TableHeadRow = <TData extends Record<string, any> = {}>({
className={clsx(
classes.MRT_TableHeadRow,
stickyHeader && classes.MRT_TableHeadRowSticky,
className,
)}
__vars={{
'--display': layoutMode === 'grid' ? 'flex' : 'table-row',
Expand Down

0 comments on commit fa20181

Please sign in to comment.