1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-18 17:22:05 +00:00
seahub/frontend/src/components/more.js
shanshuirenjia 3a67d78016 clean package.json and repair code style (#2411)
* clean package.json and repair code style

* update css style

* repair bug
2018-09-29 18:32:53 +08:00

23 lines
446 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;