diff options
| author | Haishan <[email protected]> | 2019-11-14 00:13:12 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2019-11-14 00:13:12 +0800 |
| commit | ab61e8492606c0ba4937467d32835a878b259e34 (patch) | |
| tree | 2f585a2ac42ba20e73ac8d715683c60a9b818c6a /src/components/ConnectionTable.js | |
| parent | 763c41d84873e25ceff518f93cacf3776251545b (diff) | |
chore: update connections table sorting indicator icon
Diffstat (limited to 'src/components/ConnectionTable.js')
| -rw-r--r-- | src/components/ConnectionTable.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/ConnectionTable.js b/src/components/ConnectionTable.js index 547925c..17293c0 100644 --- a/src/components/ConnectionTable.js +++ b/src/components/ConnectionTable.js @@ -1,5 +1,5 @@ import React from 'react'; -import { ArrowUp, ArrowDown } from 'react-feather'; +import { ChevronDown } from 'react-feather'; import prettyBytes from '../misc/pretty-bytes'; import { formatDistance } from 'date-fns'; import cx from 'classnames'; @@ -60,13 +60,11 @@ function Table({ data }) { className={s.th} > <span>{column.render('Header')}</span> - <span> + <span className={s.sortIconContainer}> {column.isSorted ? ( - column.isSortedDesc ? ( - <ArrowDown size={16} /> - ) : ( - <ArrowUp size={16} /> - ) + <span className={column.isSortedDesc ? '' : s.rotate180}> + <ChevronDown size={16} /> + </span> ) : null} </span> </div> |
