mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-16 00:06:11 +00:00
23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
|
import React from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import { gettext } from './constants';
|
||
|
|
||
|
const propTypes = {
|
||
|
onShowMore: PropTypes.func.isRequired
|
||
|
};
|
||
|
|
||
|
class More extends React.Component {
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<li className="list-show-more" onClick={this.props.onShowMore}>
|
||
|
<span className="more-message">{gettext('show more')}</span>
|
||
|
</li>
|
||
|
)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
More.propTypes = propTypes;
|
||
|
|
||
|
export default More;
|