mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-08 05:51:47 -07:00
UI Formatting Cleanup
This commit is contained in:
parent
b963f2aa82
commit
52e3d96f4a
110 changed files with 901 additions and 701 deletions
|
@ -5,7 +5,7 @@ import Link from 'Components/Link/Link';
|
|||
import Icon from 'Components/Icon';
|
||||
import styles from './TableHeaderCell.css';
|
||||
|
||||
class VirtualTableHeaderCell extends Component {
|
||||
class TableHeaderCell extends Component {
|
||||
|
||||
//
|
||||
// Listeners
|
||||
|
@ -43,8 +43,8 @@ class VirtualTableHeaderCell extends Component {
|
|||
|
||||
const isSorting = isSortable && sortKey === name;
|
||||
const sortIcon = sortDirection === sortDirections.ASCENDING ?
|
||||
icons.SORT_ASCENDING :
|
||||
icons.SORT_DESCENDING;
|
||||
icons.SORT_ASCENDING :
|
||||
icons.SORT_DESCENDING;
|
||||
|
||||
return (
|
||||
isSortable ?
|
||||
|
@ -72,7 +72,7 @@ class VirtualTableHeaderCell extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
VirtualTableHeaderCell.propTypes = {
|
||||
TableHeaderCell.propTypes = {
|
||||
className: PropTypes.string,
|
||||
name: PropTypes.string.isRequired,
|
||||
label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
||||
|
@ -86,9 +86,9 @@ VirtualTableHeaderCell.propTypes = {
|
|||
onSortPress: PropTypes.func
|
||||
};
|
||||
|
||||
VirtualTableHeaderCell.defaultProps = {
|
||||
TableHeaderCell.defaultProps = {
|
||||
className: styles.headerCell,
|
||||
isSortable: false
|
||||
};
|
||||
|
||||
export default VirtualTableHeaderCell;
|
||||
export default TableHeaderCell;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue