about summary refs log tree commit diff
path: root/src/state/models/ui/my-feeds.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-09-19 21:44:23 -0700
committerGitHub <noreply@github.com>2023-09-19 21:44:23 -0700
commit971c8025e6cadec74525d42a978dabddb878b8eb (patch)
tree8b215839a238966e0a1814f50ec1598ccad14f43 /src/state/models/ui/my-feeds.ts
parent753fb8bfbc33736915e8820486ec8c6cc99d6bb2 (diff)
downloadvoidsky-971c8025e6cadec74525d42a978dabddb878b8eb.tar.zst
Feeds tab fixes (#1486)
* Bold the saved feeds on mobile

* Improve the saved feeds loading state

* Add soft reset handler to feeds page

* Show feed descriptions in profile listing

* Add an 'about this feed' modal

* Fix type assertion
Diffstat (limited to 'src/state/models/ui/my-feeds.ts')
-rw-r--r--src/state/models/ui/my-feeds.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state/models/ui/my-feeds.ts b/src/state/models/ui/my-feeds.ts
index f9ad06f77..6b017709e 100644
--- a/src/state/models/ui/my-feeds.ts
+++ b/src/state/models/ui/my-feeds.ts
@@ -10,6 +10,11 @@ export type MyFeedsItem =
     }
   | {
       _reactKey: string
+      type: 'saved-feeds-loading'
+      numItems: number
+    }
+  | {
+      _reactKey: string
       type: 'discover-feeds-loading'
     }
   | {
@@ -91,7 +96,8 @@ export class MyFeedsUIModel {
     if (this.saved.isLoading) {
       items.push({
         _reactKey: '__saved_feeds_loading__',
-        type: 'spinner',
+        type: 'saved-feeds-loading',
+        numItems: this.rootStore.preferences.savedFeeds.length || 3,
       })
     } else if (this.saved.hasError) {
       items.push({