From 0c0c9eb05c2b6c3c92cbfe204423a5e19f86824b Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 12 Oct 2022 15:18:46 -0500
Subject: Update api nsids

---
 src/view/com/util/UserInfoText.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/view/com/util/UserInfoText.tsx')

diff --git a/src/view/com/util/UserInfoText.tsx b/src/view/com/util/UserInfoText.tsx
index 39aef3306..54cb93f71 100644
--- a/src/view/com/util/UserInfoText.tsx
+++ b/src/view/com/util/UserInfoText.tsx
@@ -1,5 +1,5 @@
 import React, {useState, useEffect} from 'react'
-import * as TodoSocialGetProfile from '../../../third-party/api/src/types/todo/social/getProfile'
+import * as AppBskyGetProfile from '../../../third-party/api/src/types/app/bsky/getProfile'
 import {StyleProp, Text, TextStyle} from 'react-native'
 import {useStores} from '../../../state'
 
@@ -12,7 +12,7 @@ export function UserInfoText({
   style,
 }: {
   did: string
-  attr?: keyof TodoSocialGetProfile.OutputSchema
+  attr?: keyof AppBskyGetProfile.OutputSchema
   loading?: string
   failed?: string
   prefix?: string
@@ -24,13 +24,13 @@ export function UserInfoText({
 
   const store = useStores()
   const [profile, setProfile] = useState<
-    undefined | TodoSocialGetProfile.OutputSchema
+    undefined | AppBskyGetProfile.OutputSchema
   >(undefined)
   const [didFail, setFailed] = useState<boolean>(false)
 
   useEffect(() => {
     // TODO use caching to reduce loads
-    store.api.todo.social.getProfile({user: did}).then(
+    store.api.app.bsky.getProfile({user: did}).then(
       v => {
         setProfile(v.data)
       },
@@ -38,7 +38,7 @@ export function UserInfoText({
         setFailed(true)
       },
     )
-  }, [did, store.api.todo.social])
+  }, [did, store.api.app.bsky])
 
   return (
     <Text style={style}>
-- 
cgit 1.4.1

