diff --git a/src/components/DatatableV2/header/HeaderCell.tsx b/src/components/DatatableV2/header/HeaderCell.tsx index 7e3d2e819..c2aec681d 100644 --- a/src/components/DatatableV2/header/HeaderCell.tsx +++ b/src/components/DatatableV2/header/HeaderCell.tsx @@ -9,6 +9,7 @@ import { Inline } from '../../layout'; import { Tooltip } from '../../Tooltip'; import { displayColumnIds } from '../hooks/useDisplayColumns'; import { parseFromValuesOrFunc } from '../utils'; +import { Icon } from '../../Icon'; const getTextHeaderStyle = ( labelLength: number | undefined, @@ -43,6 +44,7 @@ const HeaderCell = ({ headerComponent, renderHeaderTooltip, } = columnDef; + const direction = getIsSorted(); const showColumnActions = (enableColumnActions || cdEnableColumnActions) && @@ -96,9 +98,17 @@ const HeaderCell = ({ - {showColumnActions && ( + {showColumnActions ? ( - )} + ) : direction !== false ? ( +
+ +
+ ) : null} {getCanResize() && ( )}