Merge branch 'custom-algos' of https://github.com/bluesky-social/social-app into custom-algos

This commit is contained in:
Ansh Nanda 2023-05-25 13:00:16 -07:00
commit 6e5078e0c1
2 changed files with 20 additions and 17 deletions

View file

@ -7,8 +7,9 @@ import {useStores} from 'state/index'
import {usePalette} from 'lib/hooks/usePalette' import {usePalette} from 'lib/hooks/usePalette'
import {useAnimatedValue} from 'lib/hooks/useAnimatedValue' import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
import {Link} from '../util/Link' import {Link} from '../util/Link'
import {Text} from '../util/text/Text'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {colors} from 'lib/styles' import {s} from 'lib/styles'
export const FeedsTabBar = observer( export const FeedsTabBar = observer(
( (
@ -45,24 +46,28 @@ export const FeedsTabBar = observer(
<View style={[pal.view]}> <View style={[pal.view]}>
<TouchableOpacity <TouchableOpacity
testID="viewHeaderDrawerBtn" testID="viewHeaderDrawerBtn"
style={styles.tabBarAvi}
onPress={onPressAvi} onPress={onPressAvi}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel="Open navigation" accessibilityLabel="Open navigation"
accessibilityHint="Access profile and other navigation links"> accessibilityHint="Access profile and other navigation links"
<FontAwesomeIcon icon="bars" size={24} color={colors.blue3} /> hitSlop={10}>
<FontAwesomeIcon icon="bars" size={18} color={pal.colors.icon} />
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<Text type="title" style={[pal.link, s.bold]}>
Bluesky
</Text>
<View style={[pal.view]}> <View style={[pal.view]}>
<Link <Link
href="/settings/saved-feeds" href="/settings/saved-feeds"
hitSlop={10}
accessibilityRole="button" accessibilityRole="button"
accessibilityLabel="Edit Saved Feeds" accessibilityLabel="Edit Saved Feeds"
accessibilityHint="Opens screen to edit Saved Feeds"> accessibilityHint="Opens screen to edit Saved Feeds">
<FontAwesomeIcon <FontAwesomeIcon
icon="satellite-dish" icon="satellite-dish"
size={24} size={19}
color={pal.colors.link} color={pal.colors.icon}
/> />
</Link> </Link>
</View> </View>
@ -79,13 +84,6 @@ export const FeedsTabBar = observer(
) )
const styles = StyleSheet.create({ const styles = StyleSheet.create({
topBar: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingHorizontal: 18,
width: '100%',
},
tabBar: { tabBar: {
position: 'absolute', position: 'absolute',
zIndex: 1, zIndex: 1,
@ -96,8 +94,12 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
borderBottomWidth: 1, borderBottomWidth: 1,
}, },
tabBarAvi: { topBar: {
marginTop: 1, flexDirection: 'row',
marginRight: 18, justifyContent: 'space-between',
alignItems: 'center',
paddingHorizontal: 18,
paddingBottom: 2,
width: '100%',
}, },
}) })

View file

@ -92,7 +92,7 @@ export function TabBar({
hoverStyle={pal.viewLight} hoverStyle={pal.viewLight}
onPress={() => onPressItem(i)}> onPress={() => onPressItem(i)}>
<Text <Text
type="xl-bold" type="lg-bold"
testID={testID ? `${testID}-${item}` : undefined} testID={testID ? `${testID}-${item}` : undefined}
style={selected ? pal.text : pal.textLight}> style={selected ? pal.text : pal.textLight}>
{item} {item}
@ -130,6 +130,7 @@ const styles = isDesktopWeb
contentContainer: { contentContainer: {
columnGap: 14, columnGap: 14,
marginLeft: 14, marginLeft: 14,
paddingRight: 28,
backgroundColor: 'transparent', backgroundColor: 'transparent',
}, },
item: { item: {