Hook it up

This commit is contained in:
Eric Bailey
2024-10-23 12:54:35 -05:00
parent c8ff660f09
commit ed9deed638
2 changed files with 3 additions and 3 deletions
@@ -43,7 +43,7 @@ function FeedCard({
color="secondary" color="secondary"
onPress={onPress} onPress={onPress}
style={[a.py_sm, a.pl_sm, a.pr_md, a.rounded_sm, a.gap_sm]}> style={[a.py_sm, a.pl_sm, a.pr_md, a.rounded_sm, a.gap_sm]}>
<UserAvatar avatar="" size={32} type="algo" /> <UserAvatar avatar={feed.avatar} size={32} type="algo" />
<View style={[a.flex_1, a.gap_2xs, a.pr_sm]}> <View style={[a.flex_1, a.gap_2xs, a.pr_sm]}>
<Text <Text
style={[a.text_sm, a.font_bold, a.leading_tight]} style={[a.text_sm, a.font_bold, a.leading_tight]}
+2 -2
View File
@@ -28,7 +28,7 @@ export function Creator() {
const {_} = useLingui() const {_} = useLingui()
const {currentAccount} = useSession() const {currentAccount} = useSession()
const navigation = useNavigation<NavigationProp>() const navigation = useNavigation<NavigationProp>()
const {data: currentProfile, isPending} = useProfileQuery({ const {data: currentProfile} = useProfileQuery({
did: currentAccount?.did, did: currentAccount?.did,
staleTime: 300, staleTime: 300,
}) })
@@ -39,7 +39,7 @@ export function Creator() {
rkey, rkey,
}) })
} }
const {mutateAsync: createFeed} = useCreateFeedMutation({ const {mutateAsync: createFeed, isPending} = useCreateFeedMutation({
onSuccess: onSuccessCreate, onSuccess: onSuccessCreate,
onError: e => { onError: e => {
console.error(e) console.error(e)