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
This commit is contained in:
parent
753fb8bfbc
commit
971c8025e6
4 changed files with 74 additions and 12 deletions
|
@ -8,6 +8,11 @@ export type MyFeedsItem =
|
|||
_reactKey: string
|
||||
type: 'spinner'
|
||||
}
|
||||
| {
|
||||
_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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue