Skip to content

Commit 40c6b6a

Browse files
committed
First time sort direction logic update and testing
1 parent b00d840 commit 40c6b6a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

components/data-table/private/header-cell.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ import {
2525
DATA_TABLE_COLUMN,
2626
} from '../../../utilities/constants';
2727

28-
// const defaultProps = {
29-
// firstSortDirection: 'asc'
30-
// };
31-
3228
/**
3329
* Used internally, renders each individual column heading.
3430
*/
@@ -84,8 +80,6 @@ class DataTableHeaderCell extends React.Component {
8480
width: PropTypes.string,
8581
};
8682

87-
// static defaultProps = defaultProps;
88-
8983
state = {
9084
sortDirection: null,
9185
};
@@ -133,7 +127,6 @@ class DataTableHeaderCell extends React.Component {
133127
const { fixedHeader, isSorted, label, sortable, width } = this.props;
134128

135129
const labelType = typeof label;
136-
// const sortDirection = (!this.props.sortDirection && !this.state.sortDirection && this.props.sortable) ? this.props.firstSortDirection : (this.props.sortDirection || this.state.sortDirection);
137130
const sortDirection = this.props.sortDirection || this.state.sortDirection || this.props.firstSortDirection
138131
const expandedSortDirection =
139132
sortDirection === 'desc' ? 'descending' : 'ascending';

0 commit comments

Comments
 (0)