mirror of https://github.com/mastodon/mastodon
Add explicit "load more" link to the bottom of StatusList and notifications
parent
02cd2e42b2
commit
404d2050d3
@ -0,0 +1,21 @@
|
|||||||
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
const loadMoreStyle = {
|
||||||
|
display: 'block',
|
||||||
|
color: '#616b86',
|
||||||
|
textAlign: 'center',
|
||||||
|
padding: '15px',
|
||||||
|
textDecoration: 'none'
|
||||||
|
};
|
||||||
|
|
||||||
|
const LoadMore = ({ onClick }) => (
|
||||||
|
<a href='#' className='load-more' onClick={onClick} style={loadMoreStyle}>
|
||||||
|
<FormattedMessage id='status.load_more' defaultMessage='Load more' />
|
||||||
|
</a>
|
||||||
|
);
|
||||||
|
|
||||||
|
LoadMore.propTypes = {
|
||||||
|
onClick: React.PropTypes.func
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LoadMore;
|
Loading…
Reference in New Issue