Skip to content

Commit

Permalink
Use sort directions from SortableHeaderCell in prop type check
Browse files Browse the repository at this point in the history
  • Loading branch information
tdzienniak committed Apr 27, 2017
1 parent cbab591 commit 86ba455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-data-grid/src/ReactDataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const RowUtils = require('./RowUtils');
const ColumnUtils = require('./ColumnUtils');
const KeyCodes = require('./KeyCodes');
import AppConstants from './AppConstants';
import { DEFINE_SORT } from './cells/headerCells/SortableHeaderCell';
require('../../../themes/react-data-grid-core.css');
require('../../../themes/react-data-grid-checkbox.css');

Expand Down Expand Up @@ -68,7 +69,7 @@ const ReactDataGrid = React.createClass({
onAddFilter: React.PropTypes.func,
onGridSort: React.PropTypes.func,
sortColumn: React.PropTypes.string,
sortDirection: React.PropTypes.oneOf(['ASC', 'DESC', 'NONE']),
sortDirection: React.PropTypes.oneOf(Object.keys(DEFINE_SORT)),
onDragHandleDoubleClick: React.PropTypes.func,
onGridRowsUpdated: React.PropTypes.func,
onRowSelect: React.PropTypes.func,
Expand Down

0 comments on commit 86ba455

Please sign in to comment.