about summary refs log tree commit diff
path: root/src/view/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com')
-rw-r--r--src/view/com/modals/ComposePost.tsx4
-rw-r--r--src/view/com/modals/EditProfile.tsx2
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx2
-rw-r--r--src/view/com/post/Post.tsx2
-rw-r--r--src/view/com/posts/FeedItem.tsx2
-rw-r--r--src/view/com/util/UserInfoText.tsx10
6 files changed, 11 insertions, 11 deletions
diff --git a/src/view/com/modals/ComposePost.tsx b/src/view/com/modals/ComposePost.tsx
index cecc478f7..6e634ed65 100644
--- a/src/view/com/modals/ComposePost.tsx
+++ b/src/view/com/modals/ComposePost.tsx
@@ -3,7 +3,7 @@ import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'
 import {BottomSheetTextInput} from '@gorhom/bottom-sheet'
 import LinearGradient from 'react-native-linear-gradient'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
-import * as GetUserFollows from '../../../third-party/api/src/types/todo/social/getUserFollows'
+import * as GetUserFollows from '../../../third-party/api/src/types/app/bsky/getUserFollows'
 import {Autocomplete} from './composer/Autocomplete'
 import Toast from '../util/Toast'
 import ProgressCircle from '../util/ProgressCircle'
@@ -32,7 +32,7 @@ export function Component({
   const [autocompleteOptions, setAutocompleteOptions] = useState<string[]>([])
 
   useEffect(() => {
-    store.api.todo.social
+    store.api.app.bsky
       .getUserFollows({
         user: store.me.did || '',
       })
diff --git a/src/view/com/modals/EditProfile.tsx b/src/view/com/modals/EditProfile.tsx
index 740d81895..13a8a304d 100644
--- a/src/view/com/modals/EditProfile.tsx
+++ b/src/view/com/modals/EditProfile.tsx
@@ -6,7 +6,7 @@ import {ErrorMessage} from '../util/ErrorMessage'
 import {useStores} from '../../../state'
 import {ProfileViewModel} from '../../../state/models/profile-view'
 import {s, colors, gradients} from '../../lib/styles'
-import * as Profile from '../../../third-party/api/src/types/todo/social/profile'
+import * as Profile from '../../../third-party/api/src/types/app/bsky/profile'
 
 export const snapPoints = ['80%']
 
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index ef1324bfb..6f84aff10 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -3,7 +3,7 @@ import {observer} from 'mobx-react-lite'
 import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native'
 import Svg, {Line} from 'react-native-svg'
 import {AdxUri} from '../../../third-party/uri'
-import * as PostType from '../../../third-party/api/src/types/todo/social/post'
+import * as PostType from '../../../third-party/api/src/types/app/bsky/post'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {PostThreadViewPostModel} from '../../../state/models/post-thread-view'
 import {ComposePostModel} from '../../../state/models/shell'
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx
index 752a054b4..04cc5cdd6 100644
--- a/src/view/com/post/Post.tsx
+++ b/src/view/com/post/Post.tsx
@@ -1,7 +1,7 @@
 import React, {useState, useEffect, useMemo} from 'react'
 import {observer} from 'mobx-react-lite'
 import {AdxUri} from '../../../third-party/uri'
-import * as PostType from '../../../third-party/api/src/types/todo/social/post'
+import * as PostType from '../../../third-party/api/src/types/app/bsky/post'
 import {
   ActivityIndicator,
   Image,
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx
index b29470d2c..9bb94ad05 100644
--- a/src/view/com/posts/FeedItem.tsx
+++ b/src/view/com/posts/FeedItem.tsx
@@ -2,7 +2,7 @@ import React, {useMemo} from 'react'
 import {observer} from 'mobx-react-lite'
 import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native'
 import {AdxUri} from '../../../third-party/uri'
-import * as PostType from '../../../third-party/api/src/types/todo/social/post'
+import * as PostType from '../../../third-party/api/src/types/app/bsky/post'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
 import {FeedViewItemModel} from '../../../state/models/feed-view'
 import {ComposePostModel, SharePostModel} from '../../../state/models/shell'
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}>