remove MainScrollProvider from notifications screen
This commit is contained in:
@@ -27,7 +27,6 @@ import {TabBar} from '#/view/com/pager/TabBar'
|
|||||||
import {FAB} from '#/view/com/util/fab/FAB'
|
import {FAB} from '#/view/com/util/fab/FAB'
|
||||||
import {type ListMethods} from '#/view/com/util/List'
|
import {type ListMethods} from '#/view/com/util/List'
|
||||||
import {LoadLatestBtn} from '#/view/com/util/load-latest/LoadLatestBtn'
|
import {LoadLatestBtn} from '#/view/com/util/load-latest/LoadLatestBtn'
|
||||||
import {MainScrollProvider} from '#/view/com/util/MainScrollProvider'
|
|
||||||
import {atoms as a, useTheme, web} from '#/alf'
|
import {atoms as a, useTheme, web} from '#/alf'
|
||||||
import {Admonition} from '#/components/Admonition'
|
import {Admonition} from '#/components/Admonition'
|
||||||
import {ButtonIcon} from '#/components/Button'
|
import {ButtonIcon} from '#/components/Button'
|
||||||
@@ -254,20 +253,18 @@ function NotificationsTab({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<MainScrollProvider>
|
<NotificationFeed
|
||||||
<NotificationFeed
|
enabled={isFocusedAndActive}
|
||||||
enabled={isFocusedAndActive}
|
filter={filter}
|
||||||
filter={filter}
|
refreshNotifications={() => checkUnread({invalidate: true})}
|
||||||
refreshNotifications={() => checkUnread({invalidate: true})}
|
onScrolledDownChange={setIsScrolledDown}
|
||||||
onScrolledDownChange={setIsScrolledDown}
|
scrollElRef={scrollElRef}
|
||||||
scrollElRef={scrollElRef}
|
ListHeaderComponent={
|
||||||
ListHeaderComponent={
|
filter === 'mentions' ? (
|
||||||
filter === 'mentions' ? (
|
<DisabledNotificationsWarning active={isFocusedAndActive} />
|
||||||
<DisabledNotificationsWarning active={isFocusedAndActive} />
|
) : null
|
||||||
) : null
|
}
|
||||||
}
|
/>
|
||||||
/>
|
|
||||||
</MainScrollProvider>
|
|
||||||
{(isScrolledDown || hasNew) && (
|
{(isScrolledDown || hasNew) && (
|
||||||
<LoadLatestBtn
|
<LoadLatestBtn
|
||||||
onPress={onPressLoadLatest}
|
onPress={onPressLoadLatest}
|
||||||
|
|||||||
Reference in New Issue
Block a user