1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 07:52:14 +00:00
seahub/frontend/src/components/more.js
shanshuirenjia c0d645962f Optimized code structure (#2430)
* combine utils file

* modify file position
2018-10-09 10:56:59 +08:00

23 lines
453 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../utils/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;