diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index 40c820fed9..eb6fe2dc22 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -8,7 +8,7 @@ import {useQueryClient} from '@tanstack/react-query' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' import {logger} from '#/logger' import {isNative} from '#/platform/detection' -import {emitSoftReset, listenSoftReset} from '#/state/events' +import {listenSoftReset} from '#/state/events' import {RQKEY as NOTIFS_RQKEY} from '#/state/queries/notifications/feed' import { useUnreadNotifications, @@ -25,8 +25,7 @@ import { NativeStackScreenProps, NotificationsTabNavigatorParams, } from 'lib/routes/types' -import {colors, s} from 'lib/styles' -import {TextLink} from 'view/com/util/Link' +import {s} from 'lib/styles' import {ListMethods} from 'view/com/util/List' import {LoadLatestBtn} from 'view/com/util/load-latest/LoadLatestBtn' import {Text} from 'view/com/util/text/Text' @@ -50,7 +49,6 @@ export function NotificationsScreen({}: Props) { const scrollElRef = React.useRef(null) const {screen} = useAnalytics() const pal = usePalette('default') - const {isDesktop} = useWebMediaQueries() const queryClient = useQueryClient() const unreadNotifs = useUnreadNotifications() const unreadApi = useUnreadNotificationsApi() @@ -119,48 +117,6 @@ export function NotificationsScreen({}: Props) { return listenSoftReset(onPressLoadLatest) }, [onPressLoadLatest, isScreenFocused]) - const ListHeaderComponent = React.useCallback(() => { - if (isDesktop) { - return ( - - - Notifications{' '} - {hasNew && ( - - )} - - } - onPress={emitSoftReset} - /> - - ) - } - return <> - }, [isDesktop, pal, hasNew]) - return ( @@ -202,7 +157,6 @@ export function NotificationsScreen({}: Props) { filterType="Mentions" onScrolledDownChange={setIsScrolledDown} scrollElRef={scrollElRef} - ListHeaderComponent={ListHeaderComponent} />