This commit is contained in:
geek 2017-08-25 17:41:32 +09:00
parent 2cf42fd09a
commit da7bbf898c
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export class SortTableHeaderRow extends React.Component<Props, State> {
arr.push(
<Table.HeaderCell key={idx++} textAlign={'center'}
sorted={this.state.column === colValue ? this.state.direction : null}
sorted={this.state.column === colValue ? this.state.direction : 'ascending'}
onClick={this.handleColumnSort(colValue)}>{colValue}</Table.HeaderCell>);
}

View File

@ -125,7 +125,7 @@ export class HistoryList extends React.Component<Props, State> {
let cols:string[] = ['No.', 'Probe', 'Type', 'Message', 'Created At', 'Created By'];
let historyList: JSX.Element = (
<Container fluid>
<Table celled selectable striped>
<Table celled selectable striped sortable fixed>
<Table.Header>
<SortTableHeaderRow columnList={cols} onHeaderColumnClick={this.handleSort} />
{/*<Table.Row>*/}