Skip to content

Commit

Permalink
chore: added isSelectable todo
Browse files Browse the repository at this point in the history
  • Loading branch information
tewarig committed Jan 21, 2025
1 parent bf39ca1 commit 96cbd91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/blade/src/components/Table/Table.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const StyledReactTable = styled(ReactTable)<{
height?: BoxProps['height'];
width?: BoxProps['width'];
isVirtualized?: boolean;
isSelectable?: boolean;
showStripedRows?: boolean;
};
}>(({ $styledProps }) => {
const { theme } = useTheme();
Expand All @@ -126,8 +128,8 @@ const StyledReactTable = styled(ReactTable)<{
// auto is isVirtualized ? 'scroll' : 'auto',
});
//TODO: fix this
const $isSelectable = true;
const $showStripedRows = true;
const $isSelectable = $styledProps?.isSelectable;
const $showStripedRows = $styledProps?.showStripedRows;

return {
'&&&': {
Expand Down Expand Up @@ -740,6 +742,8 @@ const _Table = forwardRef(
height: height || `${VirtualizedTableDimensions.height}px`,
width: width || `${VirtualizedTableDimensions.width}px`,
isVirtualized,
isSelectable: selectionType !== 'none',
showStripedRows,
}}
pagination={hasPagination ? paginationConfig : null}
{...makeAccessible({ multiSelectable: selectionType === 'multiple' })}
Expand Down

0 comments on commit 96cbd91

Please sign in to comment.