Nextcloud Login refactoring
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
/*
|
||||
|
||||
struct RecipeCardView: View {
|
||||
@EnvironmentObject var appState: AppState
|
||||
@State var recipe: CookbookApiRecipeV1
|
||||
//@EnvironmentObject var appState: AppState
|
||||
@State var recipe: Recipe
|
||||
@State var recipeThumb: UIImage?
|
||||
@State var isDownloaded: Bool? = nil
|
||||
|
||||
@@ -50,6 +50,7 @@ struct RecipeCardView: View {
|
||||
.background(Color.backgroundHighlight)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 17))
|
||||
.task {
|
||||
/*
|
||||
recipeThumb = await appState.getImage(
|
||||
id: recipe.recipe_id,
|
||||
size: .THUMB,
|
||||
@@ -59,18 +60,20 @@ struct RecipeCardView: View {
|
||||
recipe.storedLocally = appState.recipeDetailExists(recipeId: recipe.recipe_id)
|
||||
}
|
||||
isDownloaded = recipe.storedLocally
|
||||
*/
|
||||
}
|
||||
.refreshable {
|
||||
/*
|
||||
recipeThumb = await appState.getImage(
|
||||
id: recipe.recipe_id,
|
||||
size: .THUMB,
|
||||
fetchMode: UserSettings.shared.storeThumb ? .preferServer : .onlyServer
|
||||
)
|
||||
)*/
|
||||
}
|
||||
.frame(height: 80)
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
struct RecipeCardView: View {
|
||||
@State var state: AccountState
|
||||
|
||||
Reference in New Issue
Block a user