diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-30 13:20:55 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-30 13:20:55 -0600 |
commit | 9084e0e4a8ba14c59ec2ee29f8035eb854d11e87 (patch) | |
tree | 7c8d7c79b5cf56e84eda7ee1a4653e00f1fe764a /src/view/com/profile/ProfileFollows.tsx | |
parent | 10f613475adea292666f00879580c46741260e01 (diff) | |
download | voidsky-9084e0e4a8ba14c59ec2ee29f8035eb854d11e87.tar.zst |
Integrate profile listings into design system
Diffstat (limited to 'src/view/com/profile/ProfileFollows.tsx')
-rw-r--r-- | src/view/com/profile/ProfileFollows.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index 2cd471b05..2d40af243 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -11,6 +11,7 @@ import {Text} from '../util/text/Text' import {ErrorMessage} from '../util/error/ErrorMessage' import {UserAvatar} from '../util/UserAvatar' import {s, colors} from '../../lib/styles' +import {usePalette} from '../../lib/hooks/usePalette' export const ProfileFollows = observer(function ProfileFollows({ name, @@ -80,9 +81,10 @@ export const ProfileFollows = observer(function ProfileFollows({ }) const User = ({item}: {item: FollowItem}) => { + const pal = usePalette('default') return ( <Link - style={styles.outer} + style={[styles.outer, pal.view, pal.border]} href={`/profile/${item.handle}`} title={item.handle} noFeedback> @@ -96,10 +98,12 @@ const User = ({item}: {item: FollowItem}) => { /> </View> <View style={styles.layoutContent}> - <Text style={[s.f15, s.bold, s.black]}> + <Text style={[s.bold, pal.text]}> {item.displayName || item.handle} </Text> - <Text style={[s.f14, s.gray5]}>@{item.handle}</Text> + <Text type="body2" style={pal.textLight}> + @{item.handle} + </Text> </View> </View> </Link> @@ -108,8 +112,7 @@ const User = ({item}: {item: FollowItem}) => { const styles = StyleSheet.create({ outer: { - marginTop: 1, - backgroundColor: colors.white, + borderTopWidth: 1, }, layout: { flexDirection: 'row', |