Skip to content

Commit b341d90

Browse files
fix: hide drag handle icon
1 parent 5265599 commit b341d90

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/DataTable/TableCol.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { CellExtended, CellProps } from './Cell';
44
import NativeSortIcon from '../icons/NativeSortIcon';
55
import { equalizeId } from './util';
66
import { TableColumn, SortAction, SortOrder } from './types';
7-
import NativeReorderIcon from '../icons/NativeReorderIcon';
87

98
interface ColumnStyleProps extends CellProps {
109
isDragging?: boolean;
@@ -176,8 +175,6 @@ function TableCol<T>({
176175
<span className={[sortDirection, '__rdt_custom_sort_icon__'].join(' ')}>{sortIcon}</span>
177176
);
178177

179-
const renderNativeReorderIcon = () => <NativeReorderIcon />;
180-
181178
const sortActive = !!(column.sortable && equalizeId(selectedColumn.id, column.id));
182179
const disableSort = !column.sortable || disabled;
183180
const nativeSortIconLeft = column.sortable && !sortIcon && !column.right;
@@ -220,7 +217,6 @@ function TableCol<T>({
220217
sortActive={!disableSort && sortActive}
221218
disabled={disableSort}
222219
>
223-
{column.reorder && renderNativeReorderIcon()}
224220
{!disableSort && customSortIconRight && renderCustomSortIcon()}
225221
{!disableSort && nativeSortIconRight && renderNativeSortIcon(sortActive)}
226222

0 commit comments

Comments
 (0)