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:
committed by
Daniel Pan
parent
5ce1b15fb2
commit
6d65771ddd
22
frontend/src/components/more.js
Normal file
22
frontend/src/components/more.js
Normal 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;
|
Reference in New Issue
Block a user