2019-07-18 12:21:50 +00:00
|
|
|
import React from 'react';
|
2024-08-12 04:14:03 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2019-07-18 12:21:50 +00:00
|
|
|
import { gettext } from '../utils/constants';
|
|
|
|
|
2024-08-12 04:14:03 +00:00
|
|
|
const propTypes = {
|
|
|
|
inAllLibs: PropTypes.bool // for 'Libraries' in 'Files' page
|
|
|
|
};
|
|
|
|
|
|
|
|
class LibsMobileThead extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { inAllLibs = false } = this.props;
|
|
|
|
const widthList = inAllLibs ? ['14%', '78%', '8%'] : ['12%', '80%', '8%'];
|
|
|
|
return (
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width={widthList[0]}><span className="sr-only">{gettext('Library Type')}</span></th>
|
|
|
|
<th width={widthList[1]}></th>
|
|
|
|
<th width={widthList[2]}><span className="sr-only">{gettext('Actions')}</span></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
);
|
|
|
|
}
|
2019-07-18 12:21:50 +00:00
|
|
|
}
|
|
|
|
|
2024-08-12 04:14:03 +00:00
|
|
|
LibsMobileThead.propTypes = propTypes;
|
|
|
|
|
2019-07-18 12:21:50 +00:00
|
|
|
export default LibsMobileThead;
|