diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-04 17:39:54 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-04 17:39:54 -0500 |
commit | f333a90fab79d582bbb7f9114f0b005fdb1cae8b (patch) | |
tree | 631755be2dd6976e9d0efd90f33751c52a09ef37 /src/state/models/badges-view.ts | |
parent | 8ae6e67eea8890f639dbaa9423e99cad5e28502f (diff) | |
download | voidsky-f333a90fab79d582bbb7f9114f0b005fdb1cae8b.tar.zst |
Update to the latest APIs
Diffstat (limited to 'src/state/models/badges-view.ts')
-rw-r--r-- | src/state/models/badges-view.ts | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/state/models/badges-view.ts b/src/state/models/badges-view.ts deleted file mode 100644 index 644ec7d9e..000000000 --- a/src/state/models/badges-view.ts +++ /dev/null @@ -1,49 +0,0 @@ -import {makeAutoObservable} from 'mobx' -import {RootStoreModel} from './root-store' - -// TODO / DEBUG -// this is a temporary fake for the model until the view actually gets implemented in the bsky api -// -prf - -export class BadgesViewModel { - // state - isLoading = false - isRefreshing = false - hasLoaded = false - error = '' - - constructor(public rootStore: RootStoreModel) { - makeAutoObservable( - this, - { - rootStore: false, - }, - {autoBind: true}, - ) - } - - get hasContent() { - return false - } - - get hasError() { - return this.error !== '' - } - - get isEmpty() { - return this.hasLoaded && !this.hasContent - } - - // public api - // = - - async setup() { - this.hasLoaded = true - } - - async refresh() {} - - async loadMore() {} - - async update() {} -} |