Remove redundant cast in PostThreadFollowBtn

This commit is contained in:
Eric Bailey
2025-01-02 15:04:27 -06:00
parent c98a97ed20
commit 05eae07098
@@ -5,7 +5,7 @@ import {useLingui} from '@lingui/react'
import {useNavigation} from '@react-navigation/native' import {useNavigation} from '@react-navigation/native'
import {logger} from '#/logger' import {logger} from '#/logger'
import {Shadow, useProfileShadow} from '#/state/cache/profile-shadow' import {useProfileShadow} from '#/state/cache/profile-shadow'
import { import {
useProfileFollowMutationQueue, useProfileFollowMutationQueue,
useProfileQuery, useProfileQuery,
@@ -35,8 +35,7 @@ function PostThreadFollowBtnLoaded({
const navigation = useNavigation() const navigation = useNavigation()
const {_} = useLingui() const {_} = useLingui()
const {gtMobile} = useBreakpoints() const {gtMobile} = useBreakpoints()
const profile: Shadow<AppBskyActorDefs.ProfileViewBasic> = const profile = useProfileShadow(profileUnshadowed)
useProfileShadow(profileUnshadowed)
const [queueFollow, queueUnfollow] = useProfileFollowMutationQueue( const [queueFollow, queueUnfollow] = useProfileFollowMutationQueue(
profile, profile,
'PostThreadItem', 'PostThreadItem',