about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostLikedBy.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-12-21 22:56:45 +0000
committerGitHub <noreply@github.com>2023-12-21 14:56:45 -0800
commitbc31da47fdcb4c1704c96b0083f8e5429475da4e (patch)
treedef266d74be5554614b53bf097e8d2ce24687615 /src/view/com/post-thread/PostLikedBy.tsx
parent987c543727dd4d816987148ec3ccdb4337d601ac (diff)
downloadvoidsky-bc31da47fdcb4c1704c96b0083f8e5429475da4e.tar.zst
Consolidate List props a bit (#2216)
Diffstat (limited to 'src/view/com/post-thread/PostLikedBy.tsx')
-rw-r--r--src/view/com/post-thread/PostLikedBy.tsx14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/view/com/post-thread/PostLikedBy.tsx b/src/view/com/post-thread/PostLikedBy.tsx
index 245ba59e8..6e013f611 100644
--- a/src/view/com/post-thread/PostLikedBy.tsx
+++ b/src/view/com/post-thread/PostLikedBy.tsx
@@ -1,18 +1,16 @@
 import React, {useCallback, useMemo, useState} from 'react'
-import {ActivityIndicator, RefreshControl, StyleSheet, View} from 'react-native'
+import {ActivityIndicator, StyleSheet, View} from 'react-native'
 import {AppBskyFeedGetLikes as GetLikes} from '@atproto/api'
 import {CenteredView} from '../util/Views'
 import {List} from '../util/List'
 import {ErrorMessage} from '../util/error/ErrorMessage'
 import {ProfileCardWithFollowBtn} from '../profile/ProfileCard'
-import {usePalette} from 'lib/hooks/usePalette'
 import {logger} from '#/logger'
 import {useResolveUriQuery} from '#/state/queries/resolve-uri'
 import {usePostLikedByQuery} from '#/state/queries/post-liked-by'
 import {cleanError} from '#/lib/strings/errors'
 
 export function PostLikedBy({uri}: {uri: string}) {
-  const pal = usePalette('default')
   const [isPTRing, setIsPTRing] = useState(false)
   const {
     data: resolvedUri,
@@ -88,14 +86,8 @@ export function PostLikedBy({uri}: {uri: string}) {
     <List
       data={likes}
       keyExtractor={item => item.actor.did}
-      refreshControl={
-        <RefreshControl
-          refreshing={isPTRing}
-          onRefresh={onRefresh}
-          tintColor={pal.colors.text}
-          titleColor={pal.colors.text}
-        />
-      }
+      refreshing={isPTRing}
+      onRefresh={onRefresh}
       onEndReached={onEndReached}
       renderItem={renderItem}
       initialNumToRender={15}