about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/notifications
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-04-10 17:12:10 +0200
committerGitHub <noreply@github.com>2018-04-10 17:12:10 +0200
commit45c9f16f714dd6de15391b5e2ae2bf0d30ef20fb (patch)
tree316d2a4cc2cec8fe5c5cbb15b17d0a00c9066b05 /app/javascript/mastodon/features/notifications
parent49bbef1202f483d4e8abc43d00d12551bb25f80f (diff)
Improve load gap styling in web UI (#7100)
Diffstat (limited to 'app/javascript/mastodon/features/notifications')
-rw-r--r--app/javascript/mastodon/features/notifications/index.js20
1 files changed, 1 insertions, 19 deletions
diff --git a/app/javascript/mastodon/features/notifications/index.js b/app/javascript/mastodon/features/notifications/index.js
index 9a6fb45c8..94a46b833 100644
--- a/app/javascript/mastodon/features/notifications/index.js
+++ b/app/javascript/mastodon/features/notifications/index.js
@@ -13,7 +13,7 @@ import { createSelector } from 'reselect';
 import { List as ImmutableList } from 'immutable';
 import { debounce } from 'lodash';
 import ScrollableList from '../../components/scrollable_list';
-import LoadMore from '../../components/load_more';
+import LoadGap from '../../components/load_gap';
 
 const messages = defineMessages({
   title: { id: 'column.notifications', defaultMessage: 'Notifications' },
@@ -24,24 +24,6 @@ const getNotifications = createSelector([
   state => state.getIn(['notifications', 'items']),
 ], (excludedTypes, notifications) => notifications.filterNot(item => item !== null && excludedTypes.includes(item.get('type'))));
 
-class LoadGap extends React.PureComponent {
-
-  static propTypes = {
-    disabled: PropTypes.bool,
-    maxId: PropTypes.string,
-    onClick: PropTypes.func.isRequired,
-  };
-
-  handleClick = () => {
-    this.props.onClick(this.props.maxId);
-  }
-
-  render () {
-    return <LoadMore onClick={this.handleClick} disabled={this.props.disabled} />;
-  }
-
-}
-
 const mapStateToProps = state => ({
   notifications: getNotifications(state),
   isLoading: state.getIn(['notifications', 'isLoading'], true),