about summary refs log tree commit diff
path: root/src/view/com/profile/ProfileFollowers.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-30 13:20:55 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-30 13:20:55 -0600
commit9084e0e4a8ba14c59ec2ee29f8035eb854d11e87 (patch)
tree7c8d7c79b5cf56e84eda7ee1a4653e00f1fe764a /src/view/com/profile/ProfileFollowers.tsx
parent10f613475adea292666f00879580c46741260e01 (diff)
downloadvoidsky-9084e0e4a8ba14c59ec2ee29f8035eb854d11e87.tar.zst
Integrate profile listings into design system
Diffstat (limited to 'src/view/com/profile/ProfileFollowers.tsx')
-rw-r--r--src/view/com/profile/ProfileFollowers.tsx13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx
index 0d088d7a3..175a582ce 100644
--- a/src/view/com/profile/ProfileFollowers.tsx
+++ b/src/view/com/profile/ProfileFollowers.tsx
@@ -11,6 +11,7 @@ import {ErrorMessage} from '../util/error/ErrorMessage'
 import {UserAvatar} from '../util/UserAvatar'
 import {useStores} from '../../../state'
 import {s, colors} from '../../lib/styles'
+import {usePalette} from '../../lib/hooks/usePalette'
 
 export const ProfileFollowers = observer(function ProfileFollowers({
   name,
@@ -80,9 +81,10 @@ export const ProfileFollowers = observer(function ProfileFollowers({
 })
 
 const User = ({item}: {item: FollowerItem}) => {
+  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: FollowerItem}) => {
           />
         </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: FollowerItem}) => {
 
 const styles = StyleSheet.create({
   outer: {
-    marginTop: 1,
-    backgroundColor: colors.white,
+    borderTopWidth: 1,
   },
   layout: {
     flexDirection: 'row',