at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { translate } from 'react-i18next'
|
||||
|
||||
export class SortableTh extends React.Component {
|
||||
static propTypes = {
|
||||
t: PropTypes.func.isRequired,
|
||||
title: PropTypes.string.isRequired
|
||||
};
|
||||
|
||||
render () {
|
||||
const { t, title } = this.props
|
||||
|
||||
return (
|
||||
<div className="sortable-th">
|
||||
{t(title)}
|
||||
|
||||
<i className="sorting-icon fa fa-sort" />
|
||||
<i className="sorting-icon fa fa-sort-asc" />
|
||||
<i className="sorting-icon fa fa-sort-desc" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default translate(['tabsContent'], { wait: true })(SortableTh)
|
||||
Reference in New Issue
Block a user