From 497aacf11329af7b2234691ba9f1f33c1c5680d8 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 29 Aug 2024 15:55:17 -0700 Subject: fix hashtag screen side borders (#4983) --- src/screens/Hashtag.tsx | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/screens/Hashtag.tsx') diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index 8bcb9359e..964cb0191 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -1,12 +1,11 @@ import React from 'react' -import {ListRenderItemInfo, Pressable, StyleSheet, View} from 'react-native' +import {ListRenderItemInfo, Pressable, View} from 'react-native' import {PostView} from '@atproto/api/dist/client/types/app/bsky/feed/defs' import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useFocusEffect} from '@react-navigation/native' import {NativeStackScreenProps} from '@react-navigation/native-stack' -import {usePalette} from '#/lib/hooks/usePalette' import {HITSLOP_10} from 'lib/constants' import {useInitialNumToRender} from 'lib/hooks/useInitialNumToRender' import {CommonNavigatorParams} from 'lib/routes/types' @@ -39,7 +38,6 @@ export default function HashtagScreen({ }: NativeStackScreenProps) { const {tag, author} = route.params const {_} = useLingui() - const pal = usePalette('default') const fullTag = React.useMemo(() => { return `#${decodeURIComponent(tag)}` @@ -111,7 +109,7 @@ export default function HashtagScreen({ return ( <> - + ( + sideBorders={true} + // @ts-ignore web only + style={ + isWeb + ? { + position: isWeb ? 'sticky' : '', + top: 0, + zIndex: 1, + } + : undefined + }> section.title)} {...props} /> )} @@ -234,12 +241,3 @@ function HashtagScreenTab({ ) } - -const styles = StyleSheet.create({ - tabBarContainer: { - // @ts-ignore web only - position: isWeb ? 'sticky' : '', - top: 0, - zIndex: 1, - }, -}) -- cgit 1.4.1