Added a loading screen on Notificatoins if isLoading

• Added:
- a loading screen on Notificatoins if isLoading
This commit is contained in:
mgabdev 2020-07-11 12:54:44 -05:00
parent f98abbb422
commit a6e9bd3fb4

View File

@ -12,6 +12,7 @@ import {
forceDequeueNotifications,
} from '../actions/notifications'
import NotificationContainer from '../containers/notification_container'
import ColumnIndicator from '../components/column_indicator'
import ScrollableList from '../components/scrollable_list'
import TimelineQueueButtonHeader from '../components/timeline_queue_button_header'
import Block from '../components/block'
@ -107,6 +108,10 @@ class Notifications extends ImmutablePureComponent {
selectedFilter,
} = this.props
if (isLoading) {
return <ColumnIndicator type='loading' />
}
let scrollableContent = null
if (isLoading && this.scrollableContent) {