1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

Optimized search module (#2397)

* updating fileRecord api and adding more component

* modify search module

* add translate
This commit is contained in:
shanshuirenjia
2018-09-25 15:10:23 +08:00
committed by Daniel Pan
parent 5ce1b15fb2
commit 6d65771ddd
7 changed files with 69 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
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;