forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit "load more" link to the bottom of StatusList and notific…
…ations
- Loading branch information
Showing
6 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
app/assets/javascripts/components/components/load_more.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters