mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
UI improvements
This commit is contained in:
@@ -71,7 +71,7 @@ struct FavoriteItemView: View {
|
||||
private var isVisible: Bool {
|
||||
switch item.section {
|
||||
case .subscriptions:
|
||||
return accounts.app.supportsSubscriptions
|
||||
return accounts.app.supportsSubscriptions && accounts.signedIn
|
||||
case .popular:
|
||||
return accounts.app.supportsPopular
|
||||
default:
|
||||
@@ -93,7 +93,7 @@ struct FavoriteItemView: View {
|
||||
|
||||
case let .trending(country, category):
|
||||
let trendingCountry = Country(rawValue: country)!
|
||||
let trendingCategory = category.isNil ? nil : TrendingCategory(rawValue: category!)!
|
||||
let trendingCategory = category.isNil ? nil : TrendingCategory(rawValue: category!)
|
||||
|
||||
return accounts.api.trending(country: trendingCountry, category: trendingCategory)
|
||||
|
||||
|
Reference in New Issue
Block a user