Add avatar images and fix some type signatures

This commit is contained in:
Paul Frazee 2022-12-08 13:45:23 -06:00
parent 273e6d2973
commit 539bf5d350
56 changed files with 543 additions and 370 deletions

View file

@ -11,8 +11,8 @@ export class UserAutocompleteViewModel {
_searchPromise: Promise<any> | undefined
// data
follows: GetFollows.OutputSchema['follows'] = []
searchRes: SearchTypeahead.OutputSchema['users'] = []
follows: GetFollows.Follow[] = []
searchRes: SearchTypeahead.User[] = []
knownHandles: Set<string> = new Set()
constructor(public rootStore: RootStoreModel) {
@ -34,11 +34,13 @@ export class UserAutocompleteViewModel {
return this.searchRes.map(user => ({
handle: user.handle,
displayName: user.displayName,
avatar: user.avatar,
}))
}
return this.follows.map(follow => ({
handle: follow.handle,
displayName: follow.displayName,
avatar: follow.avatar,
}))
}