Add avatar images and fix some type signatures
This commit is contained in:
parent
273e6d2973
commit
539bf5d350
56 changed files with 543 additions and 370 deletions
|
|
@ -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,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue