Skip to content

Commit

Permalink
feat(nodeslist): use headercell from ui-kit
Browse files Browse the repository at this point in the history
Closes DCOS-39069
  • Loading branch information
Daniel Schmidt authored and nLight committed Jul 19, 2018
1 parent 3780f3f commit 5a725ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@dcos/http-service": "0.3.0",
"@dcos/mesos-client": "0.2.3",
"@dcos/tslint-config": "0.1.0",
"@dcos/ui-kit": "1.1.1",
"@dcos/ui-kit": "1.2.3",
"babel-polyfill": "6.23.0",
"browser-info": "0.4.0",
"classnames": "2.2.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/ui-kit-stage/SortableColumnHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* JIRA: https://jira.mesosphere.com/browse/DCOS-39076
*/
import * as React from "react";
import { HeaderCell } from "@dcos/ui-kit";
import { SortableColumnHeaderCellIcon } from "ui-kit-stage/SortableColumnHeaderCellIcon";

type SortDirection = "ASC" | "DESC" | null;
Expand All @@ -17,11 +18,10 @@ export function SortableColumnHeader({
sortDirection: SortDirection;
columnContent: string | React.ReactNode;
}) {
// TODO: DCOS-39069
return (
<span onClick={sortHandler}>
<HeaderCell onClick={sortHandler}>
{columnContent}
<SortableColumnHeaderCellIcon sortDirection={sortDirection} />
</span>
</HeaderCell>
);
}

0 comments on commit 5a725ce

Please sign in to comment.