Merge the suggested actors model with the general suggestion system (#343)
This commit is contained in:
parent
f20fb92dc3
commit
4f814207bc
6 changed files with 54 additions and 84 deletions
|
@ -1,7 +1,7 @@
|
|||
import {makeAutoObservable, runInAction} from 'mobx'
|
||||
import {AppBskyActorProfile as Profile} from '@atproto/api'
|
||||
import shuffle from 'lodash.shuffle'
|
||||
import {RootStoreModel} from './root-store'
|
||||
import {RootStoreModel} from '../root-store'
|
||||
import {cleanError} from 'lib/strings/errors'
|
||||
import {bundleAsync} from 'lib/async/bundle'
|
||||
import {SUGGESTED_FOLLOWS} from 'lib/constants'
|
||||
|
@ -10,7 +10,7 @@ const PAGE_SIZE = 30
|
|||
|
||||
export type SuggestedActor = Profile.ViewBasic | Profile.View
|
||||
|
||||
export class SuggestedActorsViewModel {
|
||||
export class SuggestedActorsModel {
|
||||
// state
|
||||
pageSize = PAGE_SIZE
|
||||
isLoading = false
|
Loading…
Add table
Add a link
Reference in a new issue